Struct struct_metadata::Entry
source · pub struct Entry<Metadata: Default> {
pub label: &'static str,
pub docs: Option<Vec<&'static str>>,
pub metadata: Metadata,
pub type_info: Descriptor<Metadata>,
}Expand description
Struct describing a struct field
Fields§
§label: &'static strLabel of the field in question This respects serde’s rename attribute
docs: Option<Vec<&'static str>>doc string describing this field
metadata: Metadatametadata describing this field
type_info: Descriptor<Metadata>Type of this field
Trait Implementations§
source§impl<T: PartialEq + Default> PartialEq for Entry<T>
impl<T: PartialEq + Default> PartialEq for Entry<T>
impl<T: Eq + Default> Eq for Entry<T>
Auto Trait Implementations§
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