pub struct FieldDefinition { /* private fields */ }Implementations§
Source§impl FieldDefinition
impl FieldDefinition
pub fn new() -> Self
pub fn with_key(self, key: String) -> Self
pub fn with_description(self, description: String) -> Self
pub fn with_type(self, type_: FieldType) -> Self
pub fn with_nested_type_definition(self, definition: FieldDefinition) -> Self
pub fn with_object_fields(self, fields: Vec<FieldDefinition>) -> Self
Trait Implementations§
Source§impl Clone for FieldDefinition
impl Clone for FieldDefinition
Source§fn clone(&self) -> FieldDefinition
fn clone(&self) -> FieldDefinition
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 Into<FieldDefinition> for Box<FieldDefinition>
impl Into<FieldDefinition> for Box<FieldDefinition>
Source§fn into(self) -> PbFieldDefinition
fn into(self) -> PbFieldDefinition
Converts this type into the (usually inferred) input type.
Source§impl Into<FieldDefinition> for FieldDefinition
impl Into<FieldDefinition> for FieldDefinition
Source§fn into(self) -> PbFieldDefinition
fn into(self) -> PbFieldDefinition
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for FieldDefinition
impl RefUnwindSafe for FieldDefinition
impl Send for FieldDefinition
impl Sync for FieldDefinition
impl Unpin for FieldDefinition
impl UnsafeUnpin for FieldDefinition
impl UnwindSafe for FieldDefinition
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