#[repr(u8)]pub enum MessagingOperation {
Show 18 variants
SendMessage = 0,
SendMessageDirect = 1,
SendMessageWithPayment = 2,
ClaimPayment = 3,
StakeForTrust = 4,
Unstake = 5,
SetInboxFilter = 6,
AddContact = 7,
RemoveContact = 8,
BlockSender = 9,
ReportSpam = 10,
RegisterPublicKey = 11,
UpdatePublicKey = 12,
SetDailyQuota = 128,
SetMaxMessageSize = 129,
SetMinTrustStake = 130,
SetSponsorshipEnabled = 131,
FundRegistry = 132,
}Expand description
Messaging operation codes
Variants§
SendMessage = 0
Send message with gas sponsorship (meta-transaction)
SendMessageDirect = 1
Send message directly (user pays gas)
SendMessageWithPayment = 2
Send message with attached Koppa payment
ClaimPayment = 3
Claim payment from a message (called by recipient)
StakeForTrust = 4
Stake Koppa for trusted sender tier
Unstake = 5
Withdraw stake (with cooldown)
SetInboxFilter = 6
Set inbox filter mode
AddContact = 7
Add address to contacts whitelist
RemoveContact = 8
Remove address from contacts
BlockSender = 9
Block a sender
ReportSpam = 10
Report a message as spam
RegisterPublicKey = 11
Register Ed25519 public key for messaging
UpdatePublicKey = 12
Update registered public key
SetDailyQuota = 128
Set daily free message quota
SetMaxMessageSize = 129
Set maximum message size
SetMinTrustStake = 130
Set minimum stake for trusted tier
SetSponsorshipEnabled = 131
Enable/disable gas sponsorship
FundRegistry = 132
Fund the registry with Koppa
Implementations§
Trait Implementations§
Source§impl Clone for MessagingOperation
impl Clone for MessagingOperation
Source§fn clone(&self) -> MessagingOperation
fn clone(&self) -> MessagingOperation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MessagingOperation
impl Debug for MessagingOperation
Source§impl<'de> Deserialize<'de> for MessagingOperation
impl<'de> Deserialize<'de> for MessagingOperation
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
Source§impl PartialEq for MessagingOperation
impl PartialEq for MessagingOperation
Source§fn eq(&self, other: &MessagingOperation) -> bool
fn eq(&self, other: &MessagingOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MessagingOperation
impl Serialize for MessagingOperation
impl Copy for MessagingOperation
impl Eq for MessagingOperation
impl StructuralPartialEq for MessagingOperation
Auto Trait Implementations§
impl Freeze for MessagingOperation
impl RefUnwindSafe for MessagingOperation
impl Send for MessagingOperation
impl Sync for MessagingOperation
impl Unpin for MessagingOperation
impl UnsafeUnpin for MessagingOperation
impl UnwindSafe for MessagingOperation
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