pub struct DmAdoption<'a> {
pub room_id: &'a str,
pub legacy_dm_id: i64,
pub key_events: &'a [NewStateEvent],
pub key_events_origin_server_ts: i64,
pub now: &'a str,
}Expand description
What adopt_dm_room_for_legacy needs to bind a native DM room to a
legacy conversation, grouped for the same lint-clean reason
RoomBootstrap’s doc states.
Fields§
§room_id: &'a strThe live native DM room that already holds the pair’s dm_pair_key.
legacy_dm_id: i64The legacy dm_conversations.id the room is bound to.
key_events: &'a [NewStateEvent]The pair’s org.example.legacy_dm_key state events. Each is
written only when the room has no current event for its
(event_type, state_key) yet — an existing key event is never
overwritten.
key_events_origin_server_ts: i64§now: &'a strRFC3339 stamp for the member/state bookkeeping of the key events.
Trait Implementations§
Source§impl<'a> Clone for DmAdoption<'a>
impl<'a> Clone for DmAdoption<'a>
impl<'a> Copy for DmAdoption<'a>
Auto Trait Implementations§
impl<'a> Freeze for DmAdoption<'a>
impl<'a> RefUnwindSafe for DmAdoption<'a>
impl<'a> Send for DmAdoption<'a>
impl<'a> Sync for DmAdoption<'a>
impl<'a> Unpin for DmAdoption<'a>
impl<'a> UnsafeUnpin for DmAdoption<'a>
impl<'a> UnwindSafe for DmAdoption<'a>
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