pub struct MorphAddr(pub ActionHash, pub ActionHash);Expand description
An address representing a precise phase in an entities life-cycle (short for: Metamorphic Address)
Together the pair of identity/revision addresses act as coordinates that can be used to determine the entity’s identity (identity addr) and a phase in its life-cycle (revision addr).
§Example: Basic Usage
ActionHash, TryFrom,
};
Entity, MorphAddr,
};
let identity_addr = "uhCkkrVjqWkvcFoq2Aw4LOSe6Yx9OgQLMNG-DiXqtT0nLx8uIM2j7";
let revision_addr = "uhCkknDrZjzEgzf8iIQ6aEzbqEYrYBBg1pv_iTNUGAFJovhxOJqu0";
MorphAddr(
ActionHash::try_from(identity_addr).unwrap(),
ActionHash::try_from(revision_addr).unwrap(),
);Tuple Fields§
§0: ActionHashThe create action of the entities life-cycle
1: ActionHashAny entry creation action in the entity’s life-cycle
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MorphAddr
impl<'de> Deserialize<'de> for MorphAddr
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
Auto Trait Implementations§
impl Freeze for MorphAddr
impl RefUnwindSafe for MorphAddr
impl Send for MorphAddr
impl Sync for MorphAddr
impl Unpin for MorphAddr
impl UnwindSafe for MorphAddr
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