Enum sov_accounts::CallMessage
source · pub enum CallMessage<C: Context> {
UpdatePublicKey(C::PublicKey, C::Signature),
}
Expand description
Represents the available call messages for interacting with the sov-accounts module.
Variants§
UpdatePublicKey(C::PublicKey, C::Signature)
Tuple Fields
Updates a public key for the corresponding Account. The sender must be in possession of the new key.
Trait Implementations§
source§impl<C: Context> BorshDeserialize for CallMessage<C>where
C::PublicKey: BorshDeserialize,
C::Signature: BorshDeserialize,
impl<C: Context> BorshDeserialize for CallMessage<C>where C::PublicKey: BorshDeserialize, C::Signature: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl<C: Context> BorshSerialize for CallMessage<C>where
C::PublicKey: BorshSerialize,
C::Signature: BorshSerialize,
impl<C: Context> BorshSerialize for CallMessage<C>where C::PublicKey: BorshSerialize, C::Signature: BorshSerialize,
source§impl<C: Clone + Context> Clone for CallMessage<C>where
C::PublicKey: Clone,
C::Signature: Clone,
impl<C: Clone + Context> Clone for CallMessage<C>where C::PublicKey: Clone, C::Signature: Clone,
source§fn clone(&self) -> CallMessage<C>
fn clone(&self) -> CallMessage<C>
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<C: Debug + Context> Debug for CallMessage<C>where
C::PublicKey: Debug,
C::Signature: Debug,
impl<C: Debug + Context> Debug for CallMessage<C>where C::PublicKey: Debug, C::Signature: Debug,
source§impl<C: Context> EnumExt for CallMessage<C>where
C::PublicKey: BorshDeserialize,
C::Signature: BorshDeserialize,
impl<C: Context> EnumExt for CallMessage<C>where C::PublicKey: BorshDeserialize, C::Signature: BorshDeserialize,
source§impl<C: PartialEq + Context> PartialEq<CallMessage<C>> for CallMessage<C>where
C::PublicKey: PartialEq,
C::Signature: PartialEq,
impl<C: PartialEq + Context> PartialEq<CallMessage<C>> for CallMessage<C>where C::PublicKey: PartialEq, C::Signature: PartialEq,
source§fn eq(&self, other: &CallMessage<C>) -> bool
fn eq(&self, other: &CallMessage<C>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<C: Context> StructuralPartialEq for CallMessage<C>
Auto Trait Implementations§
impl<C> RefUnwindSafe for CallMessage<C>where <C as Spec>::PublicKey: RefUnwindSafe, <C as Spec>::Signature: RefUnwindSafe,
impl<C> Send for CallMessage<C>
impl<C> Sync for CallMessage<C>
impl<C> Unpin for CallMessage<C>where <C as Spec>::PublicKey: Unpin, <C as Spec>::Signature: Unpin,
impl<C> UnwindSafe for CallMessage<C>where <C as Spec>::PublicKey: UnwindSafe, <C as Spec>::Signature: UnwindSafe,
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