Struct matrix_sdk_test::InvitedRoomBuilder
source · pub struct InvitedRoomBuilder { /* private fields */ }
Implementations§
source§impl InvitedRoomBuilder
impl InvitedRoomBuilder
sourcepub fn new(room_id: &RoomId) -> Self
pub fn new(room_id: &RoomId) -> Self
Create a new InvitedRoomBuilder
for the given room ID.
If the room ID is DEFAULT_TEST_ROOM_ID
,
InvitedRoomBuilder::default()
can be used instead.
sourcepub fn add_state_event(self, event: StrippedStateTestEvent) -> Self
pub fn add_state_event(self, event: StrippedStateTestEvent) -> Self
Add an event to the state.
sourcepub fn add_state_bulk<I>(self, events: I) -> Selfwhere
I: IntoIterator<Item = Raw<AnyStrippedStateEvent>>,
pub fn add_state_bulk<I>(self, events: I) -> Selfwhere
I: IntoIterator<Item = Raw<AnyStrippedStateEvent>>,
Add events to the state in bulk.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for InvitedRoomBuilder
impl Send for InvitedRoomBuilder
impl Sync for InvitedRoomBuilder
impl Unpin for InvitedRoomBuilder
impl UnwindSafe for InvitedRoomBuilder
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