pub struct AssetRecord { /* private fields */ }Expand description
One indexed asset and its expected bytes.
Implementations§
Source§impl AssetRecord
impl AssetRecord
pub const fn id(&self) -> &AssetId
pub const fn path(&self) -> &BundlePath
pub const fn size_bytes(&self) -> u64
pub const fn digest(&self) -> Sha256Digest
Trait Implementations§
Source§impl Clone for AssetRecord
impl Clone for AssetRecord
Source§fn clone(&self) -> AssetRecord
fn clone(&self) -> AssetRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssetRecord
impl Debug for AssetRecord
Source§impl DescribeWire for AssetRecord
impl DescribeWire for AssetRecord
Source§fn wire_schema() -> WireSchema
fn wire_schema() -> WireSchema
The shape a value of this type puts on the wire.
Source§impl<'de> Deserialize<'de> for AssetRecord
impl<'de> Deserialize<'de> for AssetRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AssetRecord
impl PartialEq for AssetRecord
Source§impl Serialize for AssetRecord
impl Serialize for AssetRecord
impl StructuralPartialEq for AssetRecord
Auto Trait Implementations§
impl Freeze for AssetRecord
impl RefUnwindSafe for AssetRecord
impl Send for AssetRecord
impl Sync for AssetRecord
impl Unpin for AssetRecord
impl UnsafeUnpin for AssetRecord
impl UnwindSafe for AssetRecord
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