pub struct SlackApiTeamProfileGetRequest {
pub visibility: Option<SlackTeamId>,
}Fields§
§visibility: Option<SlackTeamId>Implementations§
Source§impl SlackApiTeamProfileGetRequest
impl SlackApiTeamProfileGetRequest
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackApiTeamProfileGetRequest from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn visibility(&mut self, value: SlackTeamId) -> &mut Self
pub fn visibility(&mut self, value: SlackTeamId) -> &mut Self
Sets visibility to Some(value).
Sourcepub fn reset_visibility(&mut self) -> &mut Self
pub fn reset_visibility(&mut self) -> &mut Self
Sets visibility to None.
Sourcepub fn mopt_visibility(&mut self, value: Option<SlackTeamId>) -> &mut Self
pub fn mopt_visibility(&mut self, value: Option<SlackTeamId>) -> &mut Self
Sets visibility to the given Option.
Sourcepub fn with_visibility(self, value: SlackTeamId) -> Self
pub fn with_visibility(self, value: SlackTeamId) -> Self
Returns self with visibility set to Some(value).
Sourcepub fn without_visibility(self) -> Self
pub fn without_visibility(self) -> Self
Returns self with visibility set to None.
Sourcepub fn opt_visibility(self, value: Option<SlackTeamId>) -> Self
pub fn opt_visibility(self, value: Option<SlackTeamId>) -> Self
Returns self with visibility set to the given Option.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlackApiTeamProfileGetRequest
impl<'de> Deserialize<'de> for SlackApiTeamProfileGetRequest
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<SlackApiTeamProfileGetRequestInit> for SlackApiTeamProfileGetRequest
impl From<SlackApiTeamProfileGetRequestInit> for SlackApiTeamProfileGetRequest
Source§fn from(value: SlackApiTeamProfileGetRequestInit) -> Self
fn from(value: SlackApiTeamProfileGetRequestInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackApiTeamProfileGetRequest
Auto Trait Implementations§
impl Freeze for SlackApiTeamProfileGetRequest
impl RefUnwindSafe for SlackApiTeamProfileGetRequest
impl Send for SlackApiTeamProfileGetRequest
impl Sync for SlackApiTeamProfileGetRequest
impl Unpin for SlackApiTeamProfileGetRequest
impl UnsafeUnpin for SlackApiTeamProfileGetRequest
impl UnwindSafe for SlackApiTeamProfileGetRequest
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