Struct goods_treasury::Treasury [−][src]
pub struct Treasury { /* fields omitted */ }
Expand description
Storage for goods.
Implementations
Create new goods storage.
Opens goods storage from metadata file.
Fetches asset in native format. Performs conversion if native format is absent or out of date.
pub fn fetch_updated(
&mut self,
uuid: &Uuid,
version: u64
) -> Result<Option<AssetData>, FetchError>
pub fn fetch_updated(
&mut self,
uuid: &Uuid,
version: u64
) -> Result<Option<AssetData>, FetchError>
Fetches asset in native format.
Returns Ok(None)
if native file is up-to-date.
Performs conversion if native format is absent or out of date.
Returns assets information.
Auto Trait Implementations
impl !RefUnwindSafe for Treasury
impl !UnwindSafe for Treasury
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more