pub struct SlackApiUsersProfileSetRequest {
pub profile: SlackUserProfile,
pub user: Option<SlackUserId>,
}
Fields§
§profile: SlackUserProfile
§user: Option<SlackUserId>
Implementations§
source§impl SlackApiUsersProfileSetRequest
impl SlackApiUsersProfileSetRequest
pub fn new(profile: SlackUserProfile) -> Self
pub fn profile(&mut self, value: SlackUserProfile) -> &mut Self
pub fn with_profile(self, value: SlackUserProfile) -> Self
pub fn user(&mut self, value: SlackUserId) -> &mut Self
pub fn reset_user(&mut self) -> &mut Self
pub fn mopt_user(&mut self, value: Option<SlackUserId>) -> &mut Self
pub fn with_user(self, value: SlackUserId) -> Self
pub fn without_user(self) -> Self
pub fn opt_user(self, value: Option<SlackUserId>) -> Self
Trait Implementations§
source§impl Clone for SlackApiUsersProfileSetRequest
impl Clone for SlackApiUsersProfileSetRequest
source§fn clone(&self) -> SlackApiUsersProfileSetRequest
fn clone(&self) -> SlackApiUsersProfileSetRequest
Returns a copy 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 moresource§impl<'de> Deserialize<'de> for SlackApiUsersProfileSetRequest
impl<'de> Deserialize<'de> for SlackApiUsersProfileSetRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<SlackApiUsersProfileSetRequestInit> for SlackApiUsersProfileSetRequest
impl From<SlackApiUsersProfileSetRequestInit> for SlackApiUsersProfileSetRequest
source§fn from(value: SlackApiUsersProfileSetRequestInit) -> Self
fn from(value: SlackApiUsersProfileSetRequestInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackApiUsersProfileSetRequest
impl PartialEq for SlackApiUsersProfileSetRequest
source§fn eq(&self, other: &SlackApiUsersProfileSetRequest) -> bool
fn eq(&self, other: &SlackApiUsersProfileSetRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SlackApiUsersProfileSetRequest
Auto Trait Implementations§
impl RefUnwindSafe for SlackApiUsersProfileSetRequest
impl Send for SlackApiUsersProfileSetRequest
impl Sync for SlackApiUsersProfileSetRequest
impl Unpin for SlackApiUsersProfileSetRequest
impl UnwindSafe for SlackApiUsersProfileSetRequest
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