pub struct SlackAppManifestOAuthConfig {
pub redirect_urls: Option<Vec<Url>>,
pub scopes: Option<SlackAppManifestOAuthConfigScopes>,
}Fields§
§redirect_urls: Option<Vec<Url>>§scopes: Option<SlackAppManifestOAuthConfigScopes>Implementations§
Source§impl SlackAppManifestOAuthConfig
impl SlackAppManifestOAuthConfig
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackAppManifestOAuthConfig from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn redirect_urls(&mut self, value: Vec<Url>) -> &mut Self
pub fn redirect_urls(&mut self, value: Vec<Url>) -> &mut Self
Sets redirect_urls to Some(value).
Sourcepub fn reset_redirect_urls(&mut self) -> &mut Self
pub fn reset_redirect_urls(&mut self) -> &mut Self
Sets redirect_urls to None.
Sourcepub fn mopt_redirect_urls(&mut self, value: Option<Vec<Url>>) -> &mut Self
pub fn mopt_redirect_urls(&mut self, value: Option<Vec<Url>>) -> &mut Self
Sets redirect_urls to the given Option.
Sourcepub fn with_redirect_urls(self, value: Vec<Url>) -> Self
pub fn with_redirect_urls(self, value: Vec<Url>) -> Self
Returns self with redirect_urls set to Some(value).
Sourcepub fn without_redirect_urls(self) -> Self
pub fn without_redirect_urls(self) -> Self
Returns self with redirect_urls set to None.
Sourcepub fn opt_redirect_urls(self, value: Option<Vec<Url>>) -> Self
pub fn opt_redirect_urls(self, value: Option<Vec<Url>>) -> Self
Returns self with redirect_urls set to the given Option.
Sourcepub fn scopes(&mut self, value: SlackAppManifestOAuthConfigScopes) -> &mut Self
pub fn scopes(&mut self, value: SlackAppManifestOAuthConfigScopes) -> &mut Self
Sets scopes to Some(value).
Sourcepub fn reset_scopes(&mut self) -> &mut Self
pub fn reset_scopes(&mut self) -> &mut Self
Sets scopes to None.
Sourcepub fn mopt_scopes(
&mut self,
value: Option<SlackAppManifestOAuthConfigScopes>,
) -> &mut Self
pub fn mopt_scopes( &mut self, value: Option<SlackAppManifestOAuthConfigScopes>, ) -> &mut Self
Sets scopes to the given Option.
Sourcepub fn with_scopes(self, value: SlackAppManifestOAuthConfigScopes) -> Self
pub fn with_scopes(self, value: SlackAppManifestOAuthConfigScopes) -> Self
Returns self with scopes set to Some(value).
Sourcepub fn without_scopes(self) -> Self
pub fn without_scopes(self) -> Self
Returns self with scopes set to None.
Sourcepub fn opt_scopes(
self,
value: Option<SlackAppManifestOAuthConfigScopes>,
) -> Self
pub fn opt_scopes( self, value: Option<SlackAppManifestOAuthConfigScopes>, ) -> Self
Returns self with scopes set to the given Option.
Trait Implementations§
Source§impl Clone for SlackAppManifestOAuthConfig
impl Clone for SlackAppManifestOAuthConfig
Source§impl Debug for SlackAppManifestOAuthConfig
impl Debug for SlackAppManifestOAuthConfig
Source§impl<'de> Deserialize<'de> for SlackAppManifestOAuthConfig
impl<'de> Deserialize<'de> for SlackAppManifestOAuthConfig
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<SlackAppManifestOAuthConfigInit> for SlackAppManifestOAuthConfig
impl From<SlackAppManifestOAuthConfigInit> for SlackAppManifestOAuthConfig
Source§fn from(value: SlackAppManifestOAuthConfigInit) -> Self
fn from(value: SlackAppManifestOAuthConfigInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackAppManifestOAuthConfig
Auto Trait Implementations§
impl Freeze for SlackAppManifestOAuthConfig
impl RefUnwindSafe for SlackAppManifestOAuthConfig
impl Send for SlackAppManifestOAuthConfig
impl Sync for SlackAppManifestOAuthConfig
impl Unpin for SlackAppManifestOAuthConfig
impl UnsafeUnpin for SlackAppManifestOAuthConfig
impl UnwindSafe for SlackAppManifestOAuthConfig
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