Trait Savable

Source
pub trait Savable: Serialize + Deserialize {
    // Required methods
    fn indexed_db_name(&self) -> String;
    fn save_indexed<'a>(
        &'a self,
        obj: ObjectStore<AppError>,
    ) -> Pin<Box<dyn Future<Output = Result<(), AppError>> + 'a>>;
    fn save_endpoint(
        &self,
    ) -> Pin<Box<dyn Future<Output = Result<(), ServerFnError>>>>;
    fn message(&self) -> Option<View>;
    fn clone_box(&self) -> Box<dyn Savable>;
    fn has_change(&self) -> bool;
}

Required Methods§

Source

fn indexed_db_name(&self) -> String

Source

fn save_indexed<'a>( &'a self, obj: ObjectStore<AppError>, ) -> Pin<Box<dyn Future<Output = Result<(), AppError>> + 'a>>

Source

fn save_endpoint( &self, ) -> Pin<Box<dyn Future<Output = Result<(), ServerFnError>>>>

Source

fn message(&self) -> Option<View>

Source

fn clone_box(&self) -> Box<dyn Savable>

Source

fn has_change(&self) -> bool

Trait Implementations§

Source§

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

Implementations on Foreign Types§

Source§

impl Savable for Vec<Countable>

Source§

fn indexed_db_name(&self) -> String

Source§

fn save_indexed<'a>( &'a self, obj: ObjectStore<AppError>, ) -> Pin<Box<dyn Future<Output = Result<(), AppError>> + 'a>>

Source§

fn save_endpoint( &self, ) -> Pin<Box<dyn Future<Output = Result<(), ServerFnError>>>>

Source§

fn message(&self) -> Option<View>

Source§

fn clone_box(&self) -> Box<dyn Savable>

Source§

fn has_change(&self) -> bool

Source§

impl Savable for RwSignal<CountableStore>

Source§

fn indexed_db_name(&self) -> String

Source§

fn save_indexed<'a>( &'a self, obj: ObjectStore<AppError>, ) -> Pin<Box<dyn Future<Output = Result<(), AppError>> + 'a>>

Source§

fn save_endpoint( &self, ) -> Pin<Box<dyn Future<Output = Result<(), ServerFnError>>>>

Source§

fn message(&self) -> Option<View>

Source§

fn clone_box(&self) -> Box<dyn Savable>

Source§

fn has_change(&self) -> bool

Implementors§