pub struct SlackConfig {
pub bot_token: String,
pub channel_ids: Vec<String>,
pub oldest: Option<String>,
pub limit: usize,
pub include_threads: bool,
}Fields§
§bot_token: String§channel_ids: Vec<String>§oldest: Option<String>§limit: usize§include_threads: boolImplementations§
Source§impl SlackConfig
impl SlackConfig
pub fn new(bot_token: impl Into<String>, channel_ids: Vec<String>) -> Self
pub fn with_oldest(self, ts: impl Into<String>) -> Self
pub fn with_limit(self, limit: usize) -> Self
pub fn with_threads(self) -> Self
Trait Implementations§
Source§impl Clone for SlackConfig
impl Clone for SlackConfig
Source§fn clone(&self) -> SlackConfig
fn clone(&self) -> SlackConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SlackConfig
impl RefUnwindSafe for SlackConfig
impl Send for SlackConfig
impl Sync for SlackConfig
impl Unpin for SlackConfig
impl UnsafeUnpin for SlackConfig
impl UnwindSafe for SlackConfig
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