pub enum ChatDelegateRequestMsg {
Show 14 variants
StoreRequest {
key: ChatDelegateKey,
value: Vec<u8>,
},
GetRequest {
key: ChatDelegateKey,
},
DeleteRequest {
key: ChatDelegateKey,
},
ListRequest,
StoreSigningKey {
room_key: RoomKey,
signing_key_bytes: [u8; 32],
},
GetPublicKey {
room_key: RoomKey,
},
SignMessage {
room_key: RoomKey,
request_id: RequestId,
message_bytes: Vec<u8>,
},
SignMember {
room_key: RoomKey,
request_id: RequestId,
member_bytes: Vec<u8>,
},
SignBan {
room_key: RoomKey,
request_id: RequestId,
ban_bytes: Vec<u8>,
},
SignConfig {
room_key: RoomKey,
request_id: RequestId,
config_bytes: Vec<u8>,
},
SignMemberInfo {
room_key: RoomKey,
request_id: RequestId,
member_info_bytes: Vec<u8>,
},
SignSecretVersion {
room_key: RoomKey,
request_id: RequestId,
record_bytes: Vec<u8>,
},
SignEncryptedSecret {
room_key: RoomKey,
request_id: RequestId,
secret_bytes: Vec<u8>,
},
SignUpgrade {
room_key: RoomKey,
request_id: RequestId,
upgrade_bytes: Vec<u8>,
},
}Expand description
Messages sent from the App to the Chat Delegate
Variants§
StoreRequest
GetRequest
Fields
§
key: ChatDelegateKeyDeleteRequest
Fields
§
key: ChatDelegateKeyListRequest
StoreSigningKey
Store a signing key for a room (room_key = owner’s verifying key bytes)
GetPublicKey
Get the public key for a stored signing key
SignMessage
Sign a message (MessageV1 serialized)
SignMember
Sign a member invitation (Member serialized)
SignBan
Sign a ban (BanV1 serialized)
SignConfig
Sign a room configuration (Configuration serialized)
SignMemberInfo
Sign member info (MemberInfo serialized)
SignSecretVersion
Sign a secret version record (SecretVersionRecordV1 serialized)
SignEncryptedSecret
Sign an encrypted secret for member (EncryptedSecretForMemberV1 serialized)
SignUpgrade
Sign a room upgrade (RoomUpgrade serialized)
Trait Implementations§
Source§impl Clone for ChatDelegateRequestMsg
impl Clone for ChatDelegateRequestMsg
Source§fn clone(&self) -> ChatDelegateRequestMsg
fn clone(&self) -> ChatDelegateRequestMsg
Returns a duplicate 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 ChatDelegateRequestMsg
impl Debug for ChatDelegateRequestMsg
Source§impl<'de> Deserialize<'de> for ChatDelegateRequestMsg
impl<'de> Deserialize<'de> for ChatDelegateRequestMsg
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 ChatDelegateRequestMsg
impl RefUnwindSafe for ChatDelegateRequestMsg
impl Send for ChatDelegateRequestMsg
impl Sync for ChatDelegateRequestMsg
impl Unpin for ChatDelegateRequestMsg
impl UnsafeUnpin for ChatDelegateRequestMsg
impl UnwindSafe for ChatDelegateRequestMsg
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