pub struct Entry<Metadata: Default> {
pub label: &'static str,
pub docs: Option<Vec<&'static str>>,
pub metadata: Metadata,
pub type_info: Descriptor<Metadata>,
pub has_default: bool,
pub aliases: &'static [&'static str],
}
Expand description
Struct describing a struct field
Fields§
§label: &'static str
Label of the field in question This respects serde’s rename attribute
docs: Option<Vec<&'static str>>
doc string describing this field
metadata: Metadata
metadata describing this field
type_info: Descriptor<Metadata>
Type of this field
has_default: bool
Wether this field has a default defined
aliases: &'static [&'static str]
List of names this field may be known as
Trait Implementations§
impl<T: Eq + Default> Eq for Entry<T>
Auto Trait Implementations§
impl<Metadata> Freeze for Entry<Metadata>where
Metadata: Freeze,
impl<Metadata> RefUnwindSafe for Entry<Metadata>where
Metadata: RefUnwindSafe,
impl<Metadata> Send for Entry<Metadata>where
Metadata: Send,
impl<Metadata> Sync for Entry<Metadata>where
Metadata: Sync,
impl<Metadata> Unpin for Entry<Metadata>where
Metadata: Unpin,
impl<Metadata> UnwindSafe for Entry<Metadata>where
Metadata: UnwindSafe,
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