pub struct Field { /* private fields */ }Implementations§
Source§impl Field
 
impl Field
pub fn new(name: impl Into<Ident>, ty: Type) -> Self
pub fn name(&self) -> &Ident
pub fn set_name(&mut self, name: impl Into<Ident>)
pub fn set_docs(&mut self, docs: Option<impl Into<Docs>>)
pub fn docs(&self) -> &Option<Docs>
pub fn type_(&self) -> &Type
pub fn type_mut(&mut self) -> &mut Type
pub fn set_type(&mut self, type_: impl Into<Type>)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Field
 
impl<'de> Deserialize<'de> for Field
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 Ord for Field
 
impl Ord for Field
Source§impl PartialOrd for Field
 
impl PartialOrd for Field
impl Eq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.