Struct matrix_sdk_test::InvitedRoomBuilder
source · [−]pub struct InvitedRoomBuilder { /* private fields */ }
Implementations
sourceimpl InvitedRoomBuilder
impl InvitedRoomBuilder
sourcepub fn new(room_id: impl Into<OwnedRoomId>) -> Self
pub fn new(room_id: impl Into<OwnedRoomId>) -> Self
Create a new InvitedRoomBuilder
for the given room ID.
If the room ID is test_json::DEFAULT_SYNC_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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more