pub trait AssetsInfo {
    // Required methods
    fn basics(&self) -> Basics;
    fn id(&self) -> Result<Uuid, Error>;
    fn group_id(&self) -> Result<Option<Uuid>, Error>;
    fn name(&self) -> String;
    fn owner(&self) -> Result<Uuid, Error>;
    fn created_at(&self) -> DateTime<Utc>;
    fn updated_at(&self) -> DateTime<Utc>;
    fn is_grouped(&self) -> bool;
    fn is_public(&self) -> bool;
    fn whitelist(&self) -> Result<Vec<Uuid>, Error>;
    fn status(&self) -> AssetStatus;
}
Expand description

Get information about an asset.

This trait is implemented by all asset types.

Required Methods§

source

fn basics(&self) -> Basics

Get the asset’s basic information.

source

fn id(&self) -> Result<Uuid, Error>

Get the asset’s ID.

source

fn group_id(&self) -> Result<Option<Uuid>, Error>

Get the asset’s group ID.

source

fn name(&self) -> String

Get the asset’s name.

source

fn owner(&self) -> Result<Uuid, Error>

Get the asset’s owner.

source

fn created_at(&self) -> DateTime<Utc>

Get the asset’s creation time.

source

fn updated_at(&self) -> DateTime<Utc>

Get the asset’s last update time. If the asset has never been updated, this will return None.

source

fn is_grouped(&self) -> bool

Check if the asset is grouped.

source

fn is_public(&self) -> bool

Check if the asset is open to the public.

source

fn whitelist(&self) -> Result<Vec<Uuid>, Error>

Get the list of clients that have access to the asset.

source

fn status(&self) -> AssetStatus

Get the status of the asset.

Implementors§