pub struct LegacyMembershipDataInit {
pub application: Application,
pub device_id: OwnedDeviceId,
pub expires: Duration,
pub foci_active: Vec<Focus>,
pub membership_id: String,
}
Expand description
Initial set of fields of LegacyMembershipData
.
Fields§
§application: Application
The type of the MatrixRTC session the membership belongs to.
e.g. call, spacial, document…
device_id: OwnedDeviceId
The device id of this membership.
The same user can join with their phone/computer.
expires: Duration
The duration in milliseconds relative to the time this membership joined during which the membership is valid.
The time a member has joined is defined as:
MIN(content.created_ts, event.origin_server_ts)
foci_active: Vec<Focus>
A list of the focuses (foci) in use for this membership.
membership_id: String
The id of the membership.
This is required to guarantee uniqueness of the event. Sending the same state event twice to synapse makes the HS drop the second one and return 200.
Trait Implementations§
Source§impl Debug for LegacyMembershipDataInit
impl Debug for LegacyMembershipDataInit
Source§impl From<LegacyMembershipDataInit> for LegacyMembershipData
impl From<LegacyMembershipDataInit> for LegacyMembershipData
Source§fn from(init: LegacyMembershipDataInit) -> Self
fn from(init: LegacyMembershipDataInit) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LegacyMembershipDataInit
impl RefUnwindSafe for LegacyMembershipDataInit
impl Send for LegacyMembershipDataInit
impl Sync for LegacyMembershipDataInit
impl Unpin for LegacyMembershipDataInit
impl UnwindSafe for LegacyMembershipDataInit
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