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
Tests for
self
and other
values to be equal, and is used by ==
.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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)