Trait ObjectBaseTrait

Source
pub trait ObjectBaseTrait:
    Debug
    + Serialize
    + Deserialize {
    // Required methods
    fn any_ref(&self) -> &dyn Any;
    fn kind(&self) -> &str;
    fn box_clone(&self) -> Box<dyn ObjectBaseTrait>;
}

Required Methods§

Source

fn any_ref(&self) -> &dyn Any

Source

fn kind(&self) -> &str

Source

fn box_clone(&self) -> Box<dyn ObjectBaseTrait>

Trait Implementations§

Source§

impl Clone for Box<dyn ObjectBaseTrait>

Source§

fn clone(&self) -> Box<dyn ObjectBaseTrait>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'de> Deserialize<'de> for Box<dyn ObjectBaseTrait>

Source§

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<'typetag> Serialize for dyn ObjectBaseTrait + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn ObjectBaseTrait + Send + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn ObjectBaseTrait + Send + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn ObjectBaseTrait + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Implementors§