Struct ppppp_msg::MsgMetadata
source · pub struct MsgMetadata { /* private fields */ }
Implementations§
source§impl MsgMetadata
impl MsgMetadata
sourcepub fn account_id(&self) -> &AccountId
pub fn account_id(&self) -> &AccountId
sourcepub fn account_tips(&self) -> &Option<Vec<MsgId>>
pub fn account_tips(&self) -> &Option<Vec<MsgId>>
sourcepub fn data_hash(&self) -> &Option<MsgDataHash>
pub fn data_hash(&self) -> &Option<MsgDataHash>
sourcepub fn tangles(&self) -> &MsgTangles
pub fn tangles(&self) -> &MsgTangles
source§impl MsgMetadata
impl MsgMetadata
pub fn to_hash(&self) -> Result<MsgMetadataHash, MsgError>
pub fn to_signature( &self, signing_key: &SigningKey ) -> Result<MsgSignature, MsgError>
pub fn verify_signature( &self, verifying_key: &VerifyingKey, signature: &MsgSignature ) -> Result<(), MsgError>
pub fn to_signable(&self) -> Result<Vec<u8>, MsgError>
pub fn get_moot(account_id: AccountId, domain: MsgDomain) -> Self
Trait Implementations§
source§impl Clone for MsgMetadata
impl Clone for MsgMetadata
source§fn clone(&self) -> MsgMetadata
fn clone(&self) -> MsgMetadata
Returns a copy of the value. Read more
1.0.0 · 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 MsgMetadata
impl Debug for MsgMetadata
source§impl<'de> Deserialize<'de> for MsgMetadata
impl<'de> Deserialize<'de> for MsgMetadata
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 RefUnwindSafe for MsgMetadata
impl Send for MsgMetadata
impl Sync for MsgMetadata
impl Unpin for MsgMetadata
impl UnwindSafe for MsgMetadata
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