pub struct SlackAppCredentials {
pub client_id: SlackClientId,
pub client_secret: SlackClientSecret,
pub verification_token: SlackVerificationToken,
pub signing_secret: SlackSigningSecret,
}Fields§
§client_id: SlackClientId§client_secret: SlackClientSecret§verification_token: SlackVerificationToken§signing_secret: SlackSigningSecretImplementations§
Source§impl SlackAppCredentials
impl SlackAppCredentials
Sourcepub fn new(
client_id: SlackClientId,
client_secret: SlackClientSecret,
verification_token: SlackVerificationToken,
signing_secret: SlackSigningSecret,
) -> Self
pub fn new( client_id: SlackClientId, client_secret: SlackClientSecret, verification_token: SlackVerificationToken, signing_secret: SlackSigningSecret, ) -> Self
Creates a new SlackAppCredentials from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn client_id(&mut self, value: SlackClientId) -> &mut Self
pub fn client_id(&mut self, value: SlackClientId) -> &mut Self
Sets client_id to value.
Sourcepub fn with_client_id(self, value: SlackClientId) -> Self
pub fn with_client_id(self, value: SlackClientId) -> Self
Returns self with client_id set to value.
Sourcepub fn client_secret(&mut self, value: SlackClientSecret) -> &mut Self
pub fn client_secret(&mut self, value: SlackClientSecret) -> &mut Self
Sets client_secret to value.
Sourcepub fn with_client_secret(self, value: SlackClientSecret) -> Self
pub fn with_client_secret(self, value: SlackClientSecret) -> Self
Returns self with client_secret set to value.
Sourcepub fn verification_token(&mut self, value: SlackVerificationToken) -> &mut Self
pub fn verification_token(&mut self, value: SlackVerificationToken) -> &mut Self
Sets verification_token to value.
Sourcepub fn with_verification_token(self, value: SlackVerificationToken) -> Self
pub fn with_verification_token(self, value: SlackVerificationToken) -> Self
Returns self with verification_token set to value.
Sourcepub fn signing_secret(&mut self, value: SlackSigningSecret) -> &mut Self
pub fn signing_secret(&mut self, value: SlackSigningSecret) -> &mut Self
Sets signing_secret to value.
Sourcepub fn with_signing_secret(self, value: SlackSigningSecret) -> Self
pub fn with_signing_secret(self, value: SlackSigningSecret) -> Self
Returns self with signing_secret set to value.
Trait Implementations§
Source§impl Clone for SlackAppCredentials
impl Clone for SlackAppCredentials
Source§impl Debug for SlackAppCredentials
impl Debug for SlackAppCredentials
Source§impl<'de> Deserialize<'de> for SlackAppCredentials
impl<'de> Deserialize<'de> for SlackAppCredentials
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<SlackAppCredentialsInit> for SlackAppCredentials
impl From<SlackAppCredentialsInit> for SlackAppCredentials
Source§fn from(value: SlackAppCredentialsInit) -> Self
fn from(value: SlackAppCredentialsInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackAppCredentials
impl PartialEq for SlackAppCredentials
Source§impl Serialize for SlackAppCredentials
impl Serialize for SlackAppCredentials
impl StructuralPartialEq for SlackAppCredentials
Auto Trait Implementations§
impl Freeze for SlackAppCredentials
impl RefUnwindSafe for SlackAppCredentials
impl Send for SlackAppCredentials
impl Sync for SlackAppCredentials
impl Unpin for SlackAppCredentials
impl UnsafeUnpin for SlackAppCredentials
impl UnwindSafe for SlackAppCredentials
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