pub struct JoinRoomSettings<'a> {
pub room: BareJid,
pub nick: Option<RoomNick>,
pub password: Option<String>,
pub status: Option<(&'a str, &'a str)>,
}Fields§
§room: BareJid§nick: Option<RoomNick>§password: Option<String>§status: Option<(&'a str, &'a str)>Implementations§
Source§impl<'a> JoinRoomSettings<'a>
impl<'a> JoinRoomSettings<'a>
pub fn new(room: BareJid) -> Self
pub fn with_nick(self, nick: impl AsRef<ResourceRef>) -> Self
pub fn with_password(self, password: impl AsRef<str>) -> Self
pub fn with_status(self, lang: &'a str, content: &'a str) -> Self
Trait Implementations§
Source§impl<'a> Clone for JoinRoomSettings<'a>
impl<'a> Clone for JoinRoomSettings<'a>
Source§fn clone(&self) -> JoinRoomSettings<'a>
fn clone(&self) -> JoinRoomSettings<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for JoinRoomSettings<'a>
impl<'a> RefUnwindSafe for JoinRoomSettings<'a>
impl<'a> Send for JoinRoomSettings<'a>
impl<'a> Sync for JoinRoomSettings<'a>
impl<'a> Unpin for JoinRoomSettings<'a>
impl<'a> UnwindSafe for JoinRoomSettings<'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