pub struct OwnerIdentity {
pub subject: &'static str,
pub bytes: [u8; 32],
}Expand description
One identity a CONSUMER minted, cited by the subject the consumer names it under.
This compiler mints nothing for a consumer and checks nothing here: the bytes cross unchanged, and holding one says the compiler refers exactly to that identity and says nothing else — nothing about authority, freshness, availability, or equivalence.
Fields§
§subject: &'static strThe subject the minting side names it under.
bytes: [u8; 32]The identity’s declared raw-byte storage order.
Implementations§
Source§impl OwnerIdentity
impl OwnerIdentity
Sourcepub fn citation_bytes(&self) -> Vec<u8> ⓘ
pub fn citation_bytes(&self) -> Vec<u8> ⓘ
The canonical bytes of this citation, for a transcript to be taken over.
The subject is framed ahead of the identity, so one consumer’s thirty-two bytes cited under two subjects are two citations rather than one.
Trait Implementations§
Source§impl Clone for OwnerIdentity
impl Clone for OwnerIdentity
Source§fn clone(&self) -> OwnerIdentity
fn clone(&self) -> OwnerIdentity
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 moreimpl Copy for OwnerIdentity
Source§impl Debug for OwnerIdentity
impl Debug for OwnerIdentity
impl Eq for OwnerIdentity
Source§impl Hash for OwnerIdentity
impl Hash for OwnerIdentity
Source§impl PartialEq for OwnerIdentity
impl PartialEq for OwnerIdentity
impl StructuralPartialEq for OwnerIdentity
Auto Trait Implementations§
impl Freeze for OwnerIdentity
impl RefUnwindSafe for OwnerIdentity
impl Send for OwnerIdentity
impl Sync for OwnerIdentity
impl Unpin for OwnerIdentity
impl UnsafeUnpin for OwnerIdentity
impl UnwindSafe for OwnerIdentity
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