pub struct ConversationOverview {
pub id: i32,
pub uid: String,
pub sender: Participant,
pub receiver: Vec<Participant>,
pub subject: String,
pub date_time: DateTime<Utc>,
pub read: bool,
pub visible: bool,
}Fields§
§id: i32§uid: String§sender: Participant§receiver: Vec<Participant>§subject: String§date_time: DateTime<Utc>§read: bool§visible: boolImplementations§
Source§impl ConversationOverview
impl ConversationOverview
Sourcepub async fn get_root(
client: &Client,
keys: &LanisKeyPair,
) -> Result<Vec<ConversationOverview>, Error>
pub async fn get_root( client: &Client, keys: &LanisKeyPair, ) -> Result<Vec<ConversationOverview>, Error>
Get all ConversationOverview’s (hidden and visible)
Sourcepub async fn hide(&mut self, client: &Client) -> Result<bool, Error>
pub async fn hide(&mut self, client: &Client) -> Result<bool, Error>
Hides a visible conversation and returns the result if the hiding succeeded
Sourcepub async fn show(&mut self, client: &Client) -> Result<bool, Error>
pub async fn show(&mut self, client: &Client) -> Result<bool, Error>
Shows a hidden conversation and returns the result if the hiding succeeded
Sourcepub async fn get(
&self,
client: &Client,
keys: &LanisKeyPair,
) -> Result<Conversation, Error>
pub async fn get( &self, client: &Client, keys: &LanisKeyPair, ) -> Result<Conversation, Error>
Get the full Conversation
Trait Implementations§
Source§impl Clone for ConversationOverview
impl Clone for ConversationOverview
Source§fn clone(&self) -> ConversationOverview
fn clone(&self) -> ConversationOverview
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 ConversationOverview
impl Debug for ConversationOverview
Source§impl Hash for ConversationOverview
impl Hash for ConversationOverview
Source§impl Ord for ConversationOverview
impl Ord for ConversationOverview
Source§fn cmp(&self, other: &ConversationOverview) -> Ordering
fn cmp(&self, other: &ConversationOverview) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConversationOverview
impl PartialEq for ConversationOverview
Source§impl PartialOrd for ConversationOverview
impl PartialOrd for ConversationOverview
impl Eq for ConversationOverview
impl StructuralPartialEq for ConversationOverview
Auto Trait Implementations§
impl Freeze for ConversationOverview
impl RefUnwindSafe for ConversationOverview
impl Send for ConversationOverview
impl Sync for ConversationOverview
impl Unpin for ConversationOverview
impl UnwindSafe for ConversationOverview
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.