Skip to main content

PersonalData

Trait PersonalData 

Source
pub trait PersonalData:
    Send
    + Sync
    + 'static {
    // Required methods
    fn name(&self) -> &'static str;
    fn export<'a>(
        &'a self,
        read: &'a Read,
        account: Uuid,
    ) -> BoxFuture<'a, Result<Value>>;

    // Provided method
    fn closing<'a>(
        &'a self,
        read: &'a Read,
        account: Uuid,
    ) -> BoxFuture<'a, Result<Vec<Box<dyn Closable>>>> { ... }
}
Expand description

What a module holds of an account, exported beside sofie-identity’s own records.

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn export<'a>( &'a self, read: &'a Read, account: Uuid, ) -> BoxFuture<'a, Result<Value>>

Provided Methods§

Source

fn closing<'a>( &'a self, read: &'a Read, account: Uuid, ) -> BoxFuture<'a, Result<Vec<Box<dyn Closable>>>>

Committed with the closing; an error refuses it, such as one naming what the account still holds alone.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§