pub struct Meeting {Show 13 fields
pub id: Uuid,
pub organization_id: Uuid,
pub building_id: Uuid,
pub meeting_type: MeetingType,
pub title: String,
pub description: Option<String>,
pub scheduled_date: DateTime<Utc>,
pub location: String,
pub status: MeetingStatus,
pub agenda: Vec<String>,
pub attendees_count: Option<i32>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Représente une assemblée générale de copropriétaires
Fields§
§id: Uuid§organization_id: Uuid§building_id: Uuid§meeting_type: MeetingType§title: String§description: Option<String>§scheduled_date: DateTime<Utc>§location: String§status: MeetingStatus§agenda: Vec<String>§attendees_count: Option<i32>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Implementations§
Source§impl Meeting
impl Meeting
pub fn new( organization_id: Uuid, building_id: Uuid, meeting_type: MeetingType, title: String, description: Option<String>, scheduled_date: DateTime<Utc>, location: String, ) -> Result<Self, String>
pub fn add_agenda_item(&mut self, item: String) -> Result<(), String>
pub fn complete(&mut self, attendees_count: i32)
pub fn cancel(&mut self)
pub fn is_upcoming(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Meeting
impl<'de> Deserialize<'de> for Meeting
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 From<Meeting> for MeetingResponse
impl From<Meeting> for MeetingResponse
impl StructuralPartialEq for Meeting
Auto Trait Implementations§
impl Freeze for Meeting
impl RefUnwindSafe for Meeting
impl Send for Meeting
impl Sync for Meeting
impl Unpin for Meeting
impl UnwindSafe for Meeting
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,
§impl<T> Fake for T
impl<T> Fake for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more