pub enum QueryResponse {
Show 27 variants
Profile {
four_words: String,
display_name: String,
device_name: String,
device_type: String,
},
Bool(bool),
OptionalString(Option<String>),
Entity(EntityResponse),
EntityList(Vec<EntityResponse>),
MemberList(Vec<MemberResponse>),
MemberRole(String),
PermissionOverrides(Vec<(String, String)>),
Message(MessageResponse),
Messages(Vec<MessageResponse>),
SyncState(SyncStateResponse),
Invite(InviteResponse),
InviteList(Vec<InviteResponse>),
FileContents(Vec<u8>),
FileList(Vec<FileInfoResponse>),
DiskStats(DiskStatsResponse),
KanbanBoard(KanbanBoardResponse),
KanbanBoardList(Vec<KanbanBoardResponse>),
KanbanCard(KanbanCardResponse),
KanbanCards(Vec<KanbanCardResponse>),
Presence(PresenceResponse),
PeerList(Vec<String>),
CallList(Vec<CallResponse>),
CallParticipants(Vec<String>),
Contact(ContactResponse),
ContactList(Vec<ContactResponse>),
Website(WebsiteResponse),
}Expand description
Response types for queries
Variants§
Profile
Profile information
Bool(bool)
Boolean response
OptionalString(Option<String>)
Optional string response
Entity(EntityResponse)
Entity information
EntityList(Vec<EntityResponse>)
List of entities
MemberList(Vec<MemberResponse>)
List of members
MemberRole(String)
Member role
PermissionOverrides(Vec<(String, String)>)
Permission overrides
Message(MessageResponse)
Single message with reactions
Messages(Vec<MessageResponse>)
Messages
SyncState(SyncStateResponse)
Sync state
Invite(InviteResponse)
Invite information
InviteList(Vec<InviteResponse>)
List of invites
FileContents(Vec<u8>)
File contents
FileList(Vec<FileInfoResponse>)
File list
DiskStats(DiskStatsResponse)
Disk statistics
KanbanBoard(KanbanBoardResponse)
Kanban board
KanbanBoardList(Vec<KanbanBoardResponse>)
List of Kanban boards
KanbanCard(KanbanCardResponse)
Kanban card
KanbanCards(Vec<KanbanCardResponse>)
List of Kanban cards
Presence(PresenceResponse)
Presence information
PeerList(Vec<String>)
List of peer IDs
CallList(Vec<CallResponse>)
Call information
CallParticipants(Vec<String>)
Call participants
Contact(ContactResponse)
Contact information
ContactList(Vec<ContactResponse>)
List of contacts
Website(WebsiteResponse)
Website information
Trait Implementations§
Source§impl Clone for QueryResponse
impl Clone for QueryResponse
Source§fn clone(&self) -> QueryResponse
fn clone(&self) -> QueryResponse
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 QueryResponse
impl Debug for QueryResponse
Source§impl<'de> Deserialize<'de> for QueryResponse
impl<'de> Deserialize<'de> for QueryResponse
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 QueryResponse
impl RefUnwindSafe for QueryResponse
impl Send for QueryResponse
impl Sync for QueryResponse
impl Unpin for QueryResponse
impl UnwindSafe for QueryResponse
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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