pub struct Msg { /* private fields */ }
Implementations§
source§impl Msg
impl Msg
sourcepub fn metadata(&self) -> &MsgMetadata
pub fn metadata(&self) -> &MsgMetadata
sourcepub fn verifying_key(&self) -> &VerifyingKey
pub fn verifying_key(&self) -> &VerifyingKey
sourcepub fn signature(&self) -> &MsgSignature
pub fn signature(&self) -> &MsgSignature
source§impl Msg
impl Msg
pub fn create(opts: MsgCreateOpts) -> Result<Self, MsgError>
pub fn create_moot( account_id: AccountId, domain: MsgDomain, sign_keypair: SignKeypair ) -> Result<Msg, MsgError>
pub fn create_account<CreateNonce>( sign_keypair: SignKeypair, domain: MsgDomain, create_nonce: Option<CreateNonce> ) -> Result<Msg, MsgError>where CreateNonce: Fn() -> Nonce,
pub fn id(&self) -> Result<MsgId, MsgError>
pub fn erase(&self) -> Self
pub fn from_buffer(&self, buffer: &[u8], msg: Msg) -> Result<Msg, JsonError>
pub fn is_moot( &self, account_id: Option<AccountId>, find_domain: Option<MsgDomain> ) -> bool
pub fn verify_signature(&self) -> Result<(), MsgError>
pub fn get_moot_id( account_id: AccountId, domain: MsgDomain ) -> Result<MsgId, MsgError>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Msg
impl<'de> Deserialize<'de> for Msg
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 Msg
impl Send for Msg
impl Sync for Msg
impl Unpin for Msg
impl UnwindSafe for Msg
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