pub struct Profile;Expand description
Contains methods relating to /profile/ endpoints.
Implementations§
Source§impl Profile
impl Profile
Sourcepub fn get_displayname<R: MatrixRequestable>(
rq: &mut R,
user_id: &str,
) -> impl Future<Item = DisplaynameReply, Error = MatrixError>
pub fn get_displayname<R: MatrixRequestable>( rq: &mut R, user_id: &str, ) -> impl Future<Item = DisplaynameReply, Error = MatrixError>
Get the displayname of a given user ID. This API may be used to fetch the user’s own displayname or to query the name of other users; either locally or on remote homeservers.
Sourcepub fn set_displayname<R: MatrixRequestable>(
rq: &mut R,
name: String,
) -> impl Future<Item = (), Error = MatrixError>
pub fn set_displayname<R: MatrixRequestable>( rq: &mut R, name: String, ) -> impl Future<Item = (), Error = MatrixError>
Sets the user’s displayname.
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more