pub struct ActionId(/* private fields */);Expand description
Unique identifier for an action (derived from content).
Implementations§
Source§impl ActionId
impl ActionId
Sourcepub fn from_hash(hash: ContentHash) -> Self
pub fn from_hash(hash: ContentHash) -> Self
Create from a content hash.
Sourcepub fn as_hash(&self) -> &ContentHash
pub fn as_hash(&self) -> &ContentHash
Get the underlying hash.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ActionId
impl<'de> Deserialize<'de> for ActionId
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
impl Copy for ActionId
impl Eq for ActionId
impl StructuralPartialEq for ActionId
Auto Trait Implementations§
impl Freeze for ActionId
impl RefUnwindSafe for ActionId
impl Send for ActionId
impl Sync for ActionId
impl Unpin for ActionId
impl UnsafeUnpin for ActionId
impl UnwindSafe for ActionId
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