Skip to main content

ExtensionTypeImpl

Trait ExtensionTypeImpl 

Source
pub trait ExtensionTypeImpl:
    'static
    + Send
    + Sync
    + Any {
    // Required methods
    fn name(&self) -> Cow<'_, str>;
    fn serialize_metadata(&self) -> Option<Cow<'_, str>>;
    fn dyn_clone(&self) -> Box<dyn ExtensionTypeImpl>;
    fn dyn_eq(&self, other: &(dyn ExtensionTypeImpl + 'static)) -> bool;
    fn dyn_hash(&self) -> u64;
    fn dyn_display(&self) -> Cow<'_, str>;
    fn dyn_debug(&self) -> Cow<'_, str>;
}

Required Methods§

Source

fn name(&self) -> Cow<'_, str>

Name of the extension type.

Source

fn serialize_metadata(&self) -> Option<Cow<'_, str>>

Serialize the metadata of the extension type.

Source

fn dyn_clone(&self) -> Box<dyn ExtensionTypeImpl>

Source

fn dyn_eq(&self, other: &(dyn ExtensionTypeImpl + 'static)) -> bool

Source

fn dyn_hash(&self) -> u64

Source

fn dyn_display(&self) -> Cow<'_, str>

Display representation of the extension type.

Should be a short string representation, lowercase. For example: str, datetime[ms].

Source

fn dyn_debug(&self) -> Cow<'_, str>

Debug representation of the extension type.

Should be a more verbose string representation, useful for debugging, in TitleCase, for example: String, Decimal(10, 2).

Implementors§