pub struct LegacyMembershipDataInit {
pub application: Application,
pub device_id: String,
pub expires: Duration,
pub foci_active: Vec<Focus>,
pub membership_id: String,
}
Available on crate features
events
and unstable-msc3401
only.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: 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§
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) -> LegacyMembershipData
fn from(init: LegacyMembershipDataInit) -> LegacyMembershipData
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
source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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