pub struct SlackAppManifestOAuthConfigScopes {
pub bot: Option<Vec<SlackApiTokenScope>>,
pub user: Option<Vec<SlackApiTokenScope>>,
}Fields§
§bot: Option<Vec<SlackApiTokenScope>>§user: Option<Vec<SlackApiTokenScope>>Implementations§
Source§impl SlackAppManifestOAuthConfigScopes
impl SlackAppManifestOAuthConfigScopes
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackAppManifestOAuthConfigScopes from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn bot(&mut self, value: Vec<SlackApiTokenScope>) -> &mut Self
pub fn bot(&mut self, value: Vec<SlackApiTokenScope>) -> &mut Self
Sets bot to Some(value).
Sourcepub fn mopt_bot(&mut self, value: Option<Vec<SlackApiTokenScope>>) -> &mut Self
pub fn mopt_bot(&mut self, value: Option<Vec<SlackApiTokenScope>>) -> &mut Self
Sets bot to the given Option.
Sourcepub fn with_bot(self, value: Vec<SlackApiTokenScope>) -> Self
pub fn with_bot(self, value: Vec<SlackApiTokenScope>) -> Self
Returns self with bot set to Some(value).
Sourcepub fn without_bot(self) -> Self
pub fn without_bot(self) -> Self
Returns self with bot set to None.
Sourcepub fn opt_bot(self, value: Option<Vec<SlackApiTokenScope>>) -> Self
pub fn opt_bot(self, value: Option<Vec<SlackApiTokenScope>>) -> Self
Returns self with bot set to the given Option.
Sourcepub fn user(&mut self, value: Vec<SlackApiTokenScope>) -> &mut Self
pub fn user(&mut self, value: Vec<SlackApiTokenScope>) -> &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<Vec<SlackApiTokenScope>>) -> &mut Self
pub fn mopt_user(&mut self, value: Option<Vec<SlackApiTokenScope>>) -> &mut Self
Sets user to the given Option.
Sourcepub fn with_user(self, value: Vec<SlackApiTokenScope>) -> Self
pub fn with_user(self, value: Vec<SlackApiTokenScope>) -> 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<Vec<SlackApiTokenScope>>) -> Self
pub fn opt_user(self, value: Option<Vec<SlackApiTokenScope>>) -> Self
Returns self with user set to the given Option.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlackAppManifestOAuthConfigScopes
impl<'de> Deserialize<'de> for SlackAppManifestOAuthConfigScopes
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<SlackAppManifestOAuthConfigScopesInit> for SlackAppManifestOAuthConfigScopes
impl From<SlackAppManifestOAuthConfigScopesInit> for SlackAppManifestOAuthConfigScopes
Source§fn from(value: SlackAppManifestOAuthConfigScopesInit) -> Self
fn from(value: SlackAppManifestOAuthConfigScopesInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackAppManifestOAuthConfigScopes
Auto Trait Implementations§
impl Freeze for SlackAppManifestOAuthConfigScopes
impl RefUnwindSafe for SlackAppManifestOAuthConfigScopes
impl Send for SlackAppManifestOAuthConfigScopes
impl Sync for SlackAppManifestOAuthConfigScopes
impl Unpin for SlackAppManifestOAuthConfigScopes
impl UnsafeUnpin for SlackAppManifestOAuthConfigScopes
impl UnwindSafe for SlackAppManifestOAuthConfigScopes
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