pub struct SocketMode<S>where
S: SlackWebAPIClient,{
pub api_client: S,
pub app_token: String,
pub bot_token: String,
pub option_parameter: HashMap<String, String>,
pub web_socket_port: u16,
pub ca_file_path: Option<String>,
}Expand description
The socket mode client.
Fields§
§api_client: S§app_token: String§bot_token: String§option_parameter: HashMap<String, String>§web_socket_port: u16§ca_file_path: Option<String>Implementations§
Source§impl<S> SocketMode<S>where
S: SlackWebAPIClient,
impl<S> SocketMode<S>where
S: SlackWebAPIClient,
pub fn new(api_client: S, app_token: String, bot_token: String) -> Self
pub fn option_parameter(self, key: String, value: String) -> Self
pub fn web_socket_port(self, port: u16) -> Self
pub fn ca_file_path(self, ca_file_path: String) -> Self
Auto Trait Implementations§
impl<S> Freeze for SocketMode<S>where
S: Freeze,
impl<S> RefUnwindSafe for SocketMode<S>where
S: RefUnwindSafe,
impl<S> Send for SocketMode<S>
impl<S> Sync for SocketMode<S>
impl<S> Unpin for SocketMode<S>where
S: Unpin,
impl<S> UnwindSafe for SocketMode<S>where
S: UnwindSafe,
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