Skip to main content

Described

Trait Described 

Source
pub trait Described<M: Default = HashMap<&'static str, &'static str>> {
    // Required method
    fn metadata() -> Descriptor<M>;
}
Expand description

A self description of the type being targeted including doc-strings and metadata annotations.

Required Methods§

Source

fn metadata() -> Descriptor<M>

Get self description of this type

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<M: Default, K: Described<M> + Hash, V: Described<M>> Described<M> for HashMap<K, V>

Available on crate feature std only.
Source§

impl<M: Default, T: Described<M>> Described<M> for Box<T>

Available on crate feature std only.
Source§

impl<M: Default, T: Described<M>> Described<M> for Option<T>

Source§

impl<M: Default, T: Described<M>> Described<M> for Vec<T>

Available on crate feature std only.
Source§

impl<M: Default, Tz: TimeZone> Described<M> for DateTime<Tz>

Available on crate feature chrono only.
Source§

impl<M: Default> Described<M> for String

Source§

impl<M: Default> Described<M> for bool

Source§

impl<M: Default> Described<M> for f32

Source§

impl<M: Default> Described<M> for f64

Source§

impl<M: Default> Described<M> for i8

Source§

impl<M: Default> Described<M> for i16

Source§

impl<M: Default> Described<M> for i32

Source§

impl<M: Default> Described<M> for i64

Source§

impl<M: Default> Described<M> for i128

Source§

impl<M: Default> Described<M> for u8

Source§

impl<M: Default> Described<M> for u16

Source§

impl<M: Default> Described<M> for u32

Source§

impl<M: Default> Described<M> for u64

Source§

impl<M: Default> Described<M> for u128

Implementors§