ActiveStruct

Trait ActiveStruct 

Source
pub trait ActiveStruct: ActiveRecord {
    // Required methods
    fn get_self(&self) -> Option<String>;
    fn set_self(&mut self, selfs: String);
    fn state(&self, other: Option<Option<&str>>) -> Ordering;
}

Required Methods§

Source

fn get_self(&self) -> Option<String>

Source

fn set_self(&mut self, selfs: String)

Source

fn state(&self, other: Option<Option<&str>>) -> Ordering

Other is None if no object exists at the other location. If Ordering::Less is returned there must be an existing object at the location to read.

Implementors§