pub struct RoomBootstrap<'a> {
pub room_id: &'a str,
pub kind: RoomKind,
pub creator_user_id: i64,
pub created_at: &'a str,
pub is_encrypted: bool,
pub join_rule: JoinRule,
pub history_visibility: HistoryVisibility,
pub dm_pair_key: Option<&'a str>,
pub legacy_dm_id: Option<i64>,
}Expand description
The room-metadata half of create_room_with_state’s input — every
field [insert_room_row] needs, grouped into one value instead of nine
positional arguments (this function’s own params stay lint-clean without
an #[allow(clippy::too_many_arguments)], unlike the legacy single-row
create_room/[insert_room_row] this batch shares its INSERT with).
Fields§
§room_id: &'a str§kind: RoomKind§creator_user_id: i64§created_at: &'a str§is_encrypted: bool§join_rule: JoinRule§history_visibility: HistoryVisibility§dm_pair_key: Option<&'a str>§legacy_dm_id: Option<i64>Trait Implementations§
Source§impl<'a> Clone for RoomBootstrap<'a>
impl<'a> Clone for RoomBootstrap<'a>
impl<'a> Copy for RoomBootstrap<'a>
Auto Trait Implementations§
impl<'a> Freeze for RoomBootstrap<'a>
impl<'a> RefUnwindSafe for RoomBootstrap<'a>
impl<'a> Send for RoomBootstrap<'a>
impl<'a> Sync for RoomBootstrap<'a>
impl<'a> Unpin for RoomBootstrap<'a>
impl<'a> UnsafeUnpin for RoomBootstrap<'a>
impl<'a> UnwindSafe for RoomBootstrap<'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