pub struct CodecField {
pub name: String,
pub type_ref: TypeReference,
pub required: bool,
pub list: bool,
}Expand description
One field inside a codec shape.
Fields§
§name: StringField name or selected response path.
type_ref: TypeReferenceGraphQL type reference for the field.
required: boolWhether the field is non-null in the GraphQL type system.
list: boolWhether the field has an outer or nested list wrapper.
Trait Implementations§
Source§impl Clone for CodecField
impl Clone for CodecField
Source§fn clone(&self) -> CodecField
fn clone(&self) -> CodecField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CodecField
impl Debug for CodecField
Source§impl<'de> Deserialize<'de> for CodecField
impl<'de> Deserialize<'de> for CodecField
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CodecField
impl PartialEq for CodecField
Source§fn eq(&self, other: &CodecField) -> bool
fn eq(&self, other: &CodecField) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CodecField
impl Serialize for CodecField
impl StructuralPartialEq for CodecField
Auto Trait Implementations§
impl Freeze for CodecField
impl RefUnwindSafe for CodecField
impl Send for CodecField
impl Sync for CodecField
impl Unpin for CodecField
impl UnsafeUnpin for CodecField
impl UnwindSafe for CodecField
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