pub struct LegacyMembershipDataInit {
pub application: Application,
pub device_id: OwnedDeviceId,
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 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) -> 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
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
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,
§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