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) -> ActionId
pub fn from_hash(hash: ContentHash) -> ActionId
Create from a content hash.
Sourcepub fn as_hash(&self) -> &ContentHash
pub fn as_hash(&self) -> &ContentHash
Get the underlying hash.
Trait Implementations§
impl Copy for ActionId
Source§impl<'de> Deserialize<'de> for ActionId
impl<'de> Deserialize<'de> for ActionId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActionId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActionId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ActionId
Source§impl Serialize for ActionId
impl Serialize for ActionId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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