Struct matrix_sdk_base::ruma::events::call::member::MembershipInit
pub struct MembershipInit {
pub application: Application,
pub device_id: String,
pub expires: Duration,
pub foci_active: Vec<Focus>,
pub membership_id: String,
}
Available on crate feature
unstable-msc3401
only.Expand description
Initial set of fields of Membership
.
Fields§
§application: Application
The type of the matrixRTC session the membership belongs to.
e.g. call, spacial, document…
device_id: String
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§
§impl Debug for MembershipInit
impl Debug for MembershipInit
§impl From<MembershipInit> for Membership
impl From<MembershipInit> for Membership
§fn from(init: MembershipInit) -> Membership
fn from(init: MembershipInit) -> Membership
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for MembershipInit
impl Send for MembershipInit
impl Sync for MembershipInit
impl Unpin for MembershipInit
impl UnwindSafe for MembershipInit
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