pub struct Representation { /* private fields */ }Expand description
One encoded or derived form of an asset.
Implementations§
Source§impl Representation
impl Representation
Sourcepub fn new(
id: RepresentationId,
asset_id: AssetId,
kind: RepresentationKind,
content_structure: ContentStructure,
fingerprints: Vec<RepresentationFingerprint>,
) -> Self
pub fn new( id: RepresentationId, asset_id: AssetId, kind: RepresentationKind, content_structure: ContentStructure, fingerprints: Vec<RepresentationFingerprint>, ) -> Self
Creates a representation value.
Sourcepub const fn id(&self) -> RepresentationId
pub const fn id(&self) -> RepresentationId
Returns the representation’s stable identity.
Sourcepub const fn kind(&self) -> RepresentationKind
pub const fn kind(&self) -> RepresentationKind
Returns the representation’s semantic role.
Sourcepub const fn content_structure(&self) -> &ContentStructure
pub const fn content_structure(&self) -> &ContentStructure
Returns how storage resources realize this representation.
Sourcepub fn fingerprints(&self) -> &[RepresentationFingerprint]
pub fn fingerprints(&self) -> &[RepresentationFingerprint]
Returns structure-aware identity evidence for this representation.
Trait Implementations§
Source§impl Clone for Representation
impl Clone for Representation
Source§fn clone(&self) -> Representation
fn clone(&self) -> Representation
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 Representation
impl Debug for Representation
impl Eq for Representation
Source§impl PartialEq for Representation
impl PartialEq for Representation
Source§fn eq(&self, other: &Representation) -> bool
fn eq(&self, other: &Representation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Representation
Auto Trait Implementations§
impl Freeze for Representation
impl RefUnwindSafe for Representation
impl Send for Representation
impl Sync for Representation
impl Unpin for Representation
impl UnsafeUnpin for Representation
impl UnwindSafe for Representation
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