Struct schema::OutputField
source · pub struct OutputField<'a> {
pub field_type: OutputType<'a>,
pub is_nullable: bool,
/* private fields */
}
Fields§
§field_type: OutputType<'a>
§is_nullable: bool
Indicates the presence of the field on the higher output objects. States whether or not the field can be null.
Implementations§
source§impl<'a> OutputField<'a>
impl<'a> OutputField<'a>
pub fn name(&self) -> &Cow<'a, str>
pub fn arguments(&self) -> &[InputField<'a>]
pub fn model(&self) -> Option<ModelId>
pub fn field_type(&self) -> &OutputType<'a>
pub fn is_find_unique(&self) -> bool
sourcepub fn query_info(&self) -> Option<&QueryInfo>
pub fn query_info(&self) -> Option<&QueryInfo>
Relevant for resolving top level queries.
pub fn query_tag(&self) -> Option<&QueryTag>
pub fn maps_to_relation(&self) -> bool
Trait Implementations§
source§impl<'a> Clone for OutputField<'a>
impl<'a> Clone for OutputField<'a>
source§fn clone(&self) -> OutputField<'a>
fn clone(&self) -> OutputField<'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 OutputField<'a>
impl<'a> Send for OutputField<'a>
impl<'a> Sync for OutputField<'a>
impl<'a> Unpin for OutputField<'a>
impl<'a> !UnwindSafe for OutputField<'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