pub struct SlackApiUsersProfileSetRequest {
pub profile: SlackUserProfile,
pub user: Option<SlackUserId>,
}Fields§
§profile: SlackUserProfile§user: Option<SlackUserId>Implementations§
Source§impl SlackApiUsersProfileSetRequest
impl SlackApiUsersProfileSetRequest
Sourcepub fn new(profile: SlackUserProfile) -> Self
pub fn new(profile: SlackUserProfile) -> Self
Creates a new SlackApiUsersProfileSetRequest from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn profile(&mut self, value: SlackUserProfile) -> &mut Self
pub fn profile(&mut self, value: SlackUserProfile) -> &mut Self
Sets profile to value.
Sourcepub fn with_profile(self, value: SlackUserProfile) -> Self
pub fn with_profile(self, value: SlackUserProfile) -> Self
Returns self with profile set to value.
Sourcepub fn user(&mut self, value: SlackUserId) -> &mut Self
pub fn user(&mut self, value: SlackUserId) -> &mut Self
Sets user to Some(value).
Sourcepub fn reset_user(&mut self) -> &mut Self
pub fn reset_user(&mut self) -> &mut Self
Sets user to None.
Sourcepub fn mopt_user(&mut self, value: Option<SlackUserId>) -> &mut Self
pub fn mopt_user(&mut self, value: Option<SlackUserId>) -> &mut Self
Sets user to the given Option.
Sourcepub fn with_user(self, value: SlackUserId) -> Self
pub fn with_user(self, value: SlackUserId) -> Self
Returns self with user set to Some(value).
Sourcepub fn without_user(self) -> Self
pub fn without_user(self) -> Self
Returns self with user set to None.
Sourcepub fn opt_user(self, value: Option<SlackUserId>) -> Self
pub fn opt_user(self, value: Option<SlackUserId>) -> Self
Returns self with user set to the given Option.
Trait Implementations§
Source§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.
impl StructuralPartialEq for SlackApiUsersProfileSetRequest
Auto Trait Implementations§
impl Freeze for SlackApiUsersProfileSetRequest
impl RefUnwindSafe for SlackApiUsersProfileSetRequest
impl Send for SlackApiUsersProfileSetRequest
impl Sync for SlackApiUsersProfileSetRequest
impl Unpin for SlackApiUsersProfileSetRequest
impl UnsafeUnpin 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