pub struct Asset { /* private fields */ }Expand description
Logical identity for one piece of production media.
Implementations§
Source§impl Asset
impl Asset
Sourcepub fn new(
id: AssetId,
created_at: Timestamp,
display_name: Option<String>,
import_source: Option<String>,
) -> Self
pub fn new( id: AssetId, created_at: Timestamp, display_name: Option<String>, import_source: Option<String>, ) -> Self
Creates an asset value. Paths belong to locators, not assets.
Sourcepub const fn created_at(&self) -> Timestamp
pub const fn created_at(&self) -> Timestamp
Returns when the asset was created.
Sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
Returns the optional user-facing name.
Sourcepub fn import_source(&self) -> Option<&str>
pub fn import_source(&self) -> Option<&str>
Returns optional application-supplied import provenance.
Trait Implementations§
impl Eq for Asset
impl StructuralPartialEq for Asset
Auto Trait Implementations§
impl Freeze for Asset
impl RefUnwindSafe for Asset
impl Send for Asset
impl Sync for Asset
impl Unpin for Asset
impl UnsafeUnpin for Asset
impl UnwindSafe for Asset
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more