pub struct Conversation {Show 16 fields
pub id: i32,
pub uid: String,
pub visible: bool,
pub read: bool,
pub date_time: DateTime<Utc>,
pub subject: String,
pub author: Participant,
pub group_chat: bool,
pub only_private_answers: bool,
pub can_reply: bool,
pub amount_participants: i32,
pub amount_students: i32,
pub amount_teachers: i32,
pub amount_parents: i32,
pub participants: Vec<Participant>,
pub messages: Vec<Message>,
}Fields§
§id: i32§uid: String§visible: bool§read: bool§date_time: DateTime<Utc>§subject: StringThe subject of the Conversation
The person who created this Conversation
group_chat: boolIs the Conversation a group chat
only_private_answers: boolDoes the Conversation only allow private answers
can_reply: boolDoes the Conversation allow replies
amount_participants: i32How many participants are in the Conversation
amount_students: i32How many students / other are in the Conversation
amount_teachers: i32How many teachers are in the Conversation Note: technically these are supervisors but teachers are as far as I know always supervisors
amount_parents: i32How many parents are in the Conversation
participants: Vec<Participant>All Participant’s / receiver that are in the Conversation
messages: Vec<Message>All Message’s in the conversation
Implementations§
Source§impl Conversation
impl Conversation
Trait Implementations§
Source§impl Clone for Conversation
impl Clone for Conversation
Source§fn clone(&self) -> Conversation
fn clone(&self) -> Conversation
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 Conversation
impl Debug for Conversation
Source§impl Hash for Conversation
impl Hash for Conversation
Source§impl Ord for Conversation
impl Ord for Conversation
Source§fn cmp(&self, other: &Conversation) -> Ordering
fn cmp(&self, other: &Conversation) -> 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 Conversation
impl PartialEq for Conversation
Source§impl PartialOrd for Conversation
impl PartialOrd for Conversation
impl Eq for Conversation
impl StructuralPartialEq for Conversation
Auto Trait Implementations§
impl Freeze for Conversation
impl RefUnwindSafe for Conversation
impl Send for Conversation
impl Sync for Conversation
impl Unpin for Conversation
impl UnwindSafe for Conversation
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.