pub struct AgSession {Show 20 fields
pub id: Uuid,
pub organization_id: Uuid,
pub meeting_id: Uuid,
pub platform: VideoPlatform,
pub video_url: String,
pub host_url: Option<String>,
pub status: AgSessionStatus,
pub scheduled_start: DateTime<Utc>,
pub actual_start: Option<DateTime<Utc>>,
pub actual_end: Option<DateTime<Utc>>,
pub remote_attendees_count: i32,
pub remote_voting_power: f64,
pub quorum_remote_contribution: f64,
pub access_password: Option<String>,
pub waiting_room_enabled: bool,
pub recording_enabled: bool,
pub recording_url: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub created_by: Uuid,
}Expand description
Session de visioconférence pour une Assemblée Générale (Art. 3.87 §1 CC)
L’Art. 3.87 §1 CC permet aux copropriétaires de participer à l’AG “physiquement ou à distance au moyen d’une communication électronique”. Cette entité gère la session vidéo associée à une réunion.
Fields§
§id: Uuid§organization_id: Uuid§meeting_id: Uuid§platform: VideoPlatform§video_url: String§host_url: Option<String>§status: AgSessionStatus§scheduled_start: DateTime<Utc>§actual_start: Option<DateTime<Utc>>§actual_end: Option<DateTime<Utc>>§remote_attendees_count: i32§remote_voting_power: f64§quorum_remote_contribution: f64§access_password: Option<String>§waiting_room_enabled: bool§recording_enabled: bool§recording_url: Option<String>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§created_by: UuidImplementations§
Source§impl AgSession
impl AgSession
Sourcepub fn new(
organization_id: Uuid,
meeting_id: Uuid,
platform: VideoPlatform,
video_url: String,
host_url: Option<String>,
scheduled_start: DateTime<Utc>,
access_password: Option<String>,
waiting_room_enabled: bool,
recording_enabled: bool,
created_by: Uuid,
) -> Result<Self, String>
pub fn new( organization_id: Uuid, meeting_id: Uuid, platform: VideoPlatform, video_url: String, host_url: Option<String>, scheduled_start: DateTime<Utc>, access_password: Option<String>, waiting_room_enabled: bool, recording_enabled: bool, created_by: Uuid, ) -> Result<Self, String>
Crée une nouvelle session de visioconférence
Sourcepub fn end(&mut self, recording_url: Option<String>) -> Result<(), String>
pub fn end(&mut self, recording_url: Option<String>) -> Result<(), String>
Termine la session (Live → Ended)
Sourcepub fn record_remote_join(
&mut self,
voting_power: f64,
total_building_quotas: f64,
) -> Result<(), String>
pub fn record_remote_join( &mut self, voting_power: f64, total_building_quotas: f64, ) -> Result<(), String>
Enregistre un participant distant et met à jour le quorum distanciel
Art. 3.87 §5 CC : les participants en visio comptent pour le quorum au même titre que les présents physiquement.
Sourcepub fn calculate_combined_quorum(
&self,
physical_quotas: f64,
total_building_quotas: f64,
) -> Result<f64, String>
pub fn calculate_combined_quorum( &self, physical_quotas: f64, total_building_quotas: f64, ) -> Result<f64, String>
Calcule le quorum combiné (présentiel + distanciel)
Art. 3.87 §5 CC : nécessite >50% des millièmes
Sourcepub fn duration_minutes(&self) -> Option<i64>
pub fn duration_minutes(&self) -> Option<i64>
Durée de la session en minutes (si terminée)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgSession
impl<'de> Deserialize<'de> for AgSession
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<&AgSession> for AgSessionResponse
impl From<&AgSession> for AgSessionResponse
impl StructuralPartialEq for AgSession
Auto Trait Implementations§
impl Freeze for AgSession
impl RefUnwindSafe for AgSession
impl Send for AgSession
impl Sync for AgSession
impl Unpin for AgSession
impl UnwindSafe for AgSession
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
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
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 moreCreates a shared type from an unshared type.