[][src]Struct slack_morphism::listener::SlackOAuthListenerConfig

pub struct SlackOAuthListenerConfig {
    pub client_id: String,
    pub client_secret: String,
    pub bot_scope: String,
    pub redirect_callback_host: String,
    pub install_path: String,
    pub redirect_callback_path: String,
    pub redirect_installed_url: String,
    pub redirect_cancelled_url: String,
    pub redirect_error_redirect_url: String,
}

Fields

client_id: Stringclient_secret: Stringbot_scope: Stringredirect_callback_host: Stringinstall_path: Stringredirect_callback_path: Stringredirect_installed_url: Stringredirect_cancelled_url: Stringredirect_error_redirect_url: String

Implementations

impl SlackOAuthListenerConfig[src]

pub fn new(
    client_id: String,
    client_secret: String,
    bot_scope: String,
    redirect_callback_host: String
) -> Self
[src]

pub fn client_id(&mut self, value: String) -> &mut Self[src]

pub fn with_client_id(self, value: String) -> Self[src]

pub fn client_secret(&mut self, value: String) -> &mut Self[src]

pub fn with_client_secret(self, value: String) -> Self[src]

pub fn bot_scope(&mut self, value: String) -> &mut Self[src]

pub fn with_bot_scope(self, value: String) -> Self[src]

pub fn redirect_callback_host(&mut self, value: String) -> &mut Self[src]

pub fn with_redirect_callback_host(self, value: String) -> Self[src]

pub fn install_path(&mut self, value: String) -> &mut Self[src]

pub fn with_install_path(self, value: String) -> Self[src]

pub fn redirect_callback_path(&mut self, value: String) -> &mut Self[src]

pub fn with_redirect_callback_path(self, value: String) -> Self[src]

pub fn redirect_installed_url(&mut self, value: String) -> &mut Self[src]

pub fn with_redirect_installed_url(self, value: String) -> Self[src]

pub fn redirect_cancelled_url(&mut self, value: String) -> &mut Self[src]

pub fn with_redirect_cancelled_url(self, value: String) -> Self[src]

pub fn redirect_error_redirect_url(&mut self, value: String) -> &mut Self[src]

pub fn with_redirect_error_redirect_url(self, value: String) -> Self[src]

impl SlackOAuthListenerConfig[src]

pub fn to_redirect_url(&self) -> String[src]

Trait Implementations

impl Clone for SlackOAuthListenerConfig[src]

impl Debug for SlackOAuthListenerConfig[src]

impl From<SlackOAuthListenerConfigInit> for SlackOAuthListenerConfig[src]

impl PartialEq<SlackOAuthListenerConfig> for SlackOAuthListenerConfig[src]

impl StructuralPartialEq for SlackOAuthListenerConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.