[][src]Trait safe_core::client::AuthActions

pub trait AuthActions: Client + Clone + 'static {
#[must_use]    fn list_auth_keys_and_version<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(BTreeMap<PublicKey, AppPermissions>, u64), CoreError>> + Send + 'async_trait>>
    where
        Self: Sized,
        'life0: 'async_trait,
        Self: Sync + 'async_trait
, { ... }
#[must_use] fn ins_auth_key<'life0, 'async_trait>(
        &'life0 self,
        key: PublicKey,
        permissions: AppPermissions,
        version: u64
    ) -> Pin<Box<dyn Future<Output = Result<(), CoreError>> + Send + 'async_trait>>
    where
        Self: Sized,
        'life0: 'async_trait,
        Self: Sync + 'async_trait
, { ... }
#[must_use] fn del_auth_key<'life0, 'async_trait>(
        &'life0 self,
        key: PublicKey,
        version: u64
    ) -> Pin<Box<dyn Future<Output = Result<(), CoreError>> + Send + 'async_trait>>
    where
        Self: Sized,
        'life0: 'async_trait,
        Self: Sync + 'async_trait
, { ... }
#[must_use] fn delete_mdata<'life0, 'async_trait>(
        &'life0 self,
        address: MDataAddress
    ) -> Pin<Box<dyn Future<Output = Result<(), CoreError>> + Send + 'async_trait>>
    where
        Self: Sized,
        'life0: 'async_trait,
        Self: Sync + 'async_trait
, { ... }
#[must_use] fn delete_adata<'life0, 'async_trait>(
        &'life0 self,
        address: ADataAddress
    ) -> Pin<Box<dyn Future<Output = Result<(), CoreError>> + Send + 'async_trait>>
    where
        Self: Sized,
        'life0: 'async_trait,
        Self: Sync + 'async_trait
, { ... } }

This trait implements functions that are supposed to be called only by CoreClient and AuthClient. Applications are not allowed to DELETE MData and get/mutate auth keys, hence AppClient does not implement this trait.

Provided methods

#[must_use]fn list_auth_keys_and_version<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<(BTreeMap<PublicKey, AppPermissions>, u64), CoreError>> + Send + 'async_trait>> where
    Self: Sized,
    'life0: 'async_trait,
    Self: Sync + 'async_trait, 

Fetches a list of authorised keys and version.

#[must_use]fn ins_auth_key<'life0, 'async_trait>(
    &'life0 self,
    key: PublicKey,
    permissions: AppPermissions,
    version: u64
) -> Pin<Box<dyn Future<Output = Result<(), CoreError>> + Send + 'async_trait>> where
    Self: Sized,
    'life0: 'async_trait,
    Self: Sync + 'async_trait, 

Adds a new authorised key.

#[must_use]fn del_auth_key<'life0, 'async_trait>(
    &'life0 self,
    key: PublicKey,
    version: u64
) -> Pin<Box<dyn Future<Output = Result<(), CoreError>> + Send + 'async_trait>> where
    Self: Sized,
    'life0: 'async_trait,
    Self: Sync + 'async_trait, 

Removes an authorised key.

#[must_use]fn delete_mdata<'life0, 'async_trait>(
    &'life0 self,
    address: MDataAddress
) -> Pin<Box<dyn Future<Output = Result<(), CoreError>> + Send + 'async_trait>> where
    Self: Sized,
    'life0: 'async_trait,
    Self: Sync + 'async_trait, 

Delete MData from network

#[must_use]fn delete_adata<'life0, 'async_trait>(
    &'life0 self,
    address: ADataAddress
) -> Pin<Box<dyn Future<Output = Result<(), CoreError>> + Send + 'async_trait>> where
    Self: Sized,
    'life0: 'async_trait,
    Self: Sync + 'async_trait, 

Delete AData from network.

Loading content...

Implementors

Loading content...