Struct schema::ObjectType
source · pub struct ObjectType<'a> { /* private fields */ }
Implementations§
source§impl<'a> ObjectType<'a>
impl<'a> ObjectType<'a>
pub fn identifier(&self) -> &Identifier
pub fn name(&self) -> String
pub fn get_fields(&self) -> &[OutputField<'a>]
pub fn find_field(&self, name: &str) -> Option<&OutputField<'a>>
Trait Implementations§
source§impl<'a> Clone for ObjectType<'a>
impl<'a> Clone for ObjectType<'a>
source§fn clone(&self) -> ObjectType<'a>
fn clone(&self) -> ObjectType<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> !RefUnwindSafe for ObjectType<'a>
impl<'a> Send for ObjectType<'a>
impl<'a> Sync for ObjectType<'a>
impl<'a> Unpin for ObjectType<'a>
impl<'a> !UnwindSafe for ObjectType<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more