Struct schema::OutputType
source · pub struct OutputType<'a> {
pub inner: InnerOutputType<'a>,
/* private fields */
}
Fields§
§inner: InnerOutputType<'a>
Implementations§
source§impl<'a> OutputType<'a>
impl<'a> OutputType<'a>
pub fn non_list(inner: InnerOutputType<'a>) -> Self
pub fn object(containing: ObjectType<'a>) -> Self
sourcepub fn as_object_type<'b>(&'b self) -> Option<&'b ObjectType<'a>>
pub fn as_object_type<'b>(&'b self) -> Option<&'b ObjectType<'a>>
Attempts to recurse through the type until an object type is found. Returns Some(ObjectTypeStrongRef) if ab object type is found, None otherwise.
pub fn is_list(&self) -> bool
pub fn is_object(&self) -> bool
pub fn is_scalar(&self) -> bool
pub fn is_enum(&self) -> bool
pub fn is_scalar_list(&self) -> bool
pub fn is_enum_list(&self) -> bool
Trait Implementations§
source§impl<'a> Clone for OutputType<'a>
impl<'a> Clone for OutputType<'a>
source§fn clone(&self) -> OutputType<'a>
fn clone(&self) -> OutputType<'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 OutputType<'a>
impl<'a> Send for OutputType<'a>
impl<'a> Sync for OutputType<'a>
impl<'a> Unpin for OutputType<'a>
impl<'a> !UnwindSafe for OutputType<'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