pub struct UsersProfile {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl UsersProfile
impl UsersProfile
Sourcepub async fn get(
&self,
include_labels: bool,
user: &str,
) -> Result<Response<UsersProfileGetSchema>, ClientError>
pub async fn get( &self, include_labels: bool, user: &str, ) -> Result<Response<UsersProfileGetSchema>, ClientError>
This function performs a GET to the /users.profile.get endpoint.
Retrieves a user’s profile information.
FROM: https://api.slack.com/methods/users.profile.get
Parameters:
token: &str– Authentication token. Requires scope:users.profile:read.include_labels: bool– Include labels for each ID in custom profile fields.user: &str– User to retrieve profile info for.
Sourcepub async fn set(&self) -> Result<Response<UsersProfileSetSchema>, ClientError>
pub async fn set(&self) -> Result<Response<UsersProfileSetSchema>, ClientError>
This function performs a POST to the /users.profile.set endpoint.
Set the profile information for a user.
FROM: https://api.slack.com/methods/users.profile.set
Parameters:
token: &str– Authentication token. Requires scope:users.profile:write.
Auto Trait Implementations§
impl Freeze for UsersProfile
impl !RefUnwindSafe for UsersProfile
impl Send for UsersProfile
impl Sync for UsersProfile
impl Unpin for UsersProfile
impl UnsafeUnpin for UsersProfile
impl !UnwindSafe for UsersProfile
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