Struct slack_morphism::SlackBotInfo
source · [−]pub struct SlackBotInfo {
pub id: Option<SlackBotId>,
pub name: String,
pub updated: Option<SlackDateTime>,
pub app_id: String,
pub user_id: String,
pub icons: Option<SlackIconImages>,
}Fields
id: Option<SlackBotId>name: Stringupdated: Option<SlackDateTime>app_id: Stringuser_id: Stringicons: Option<SlackIconImages>Implementations
sourceimpl SlackBotInfo
impl SlackBotInfo
pub fn new(name: String, app_id: String, user_id: String) -> Self
pub fn id(&mut self, value: SlackBotId) -> &mut Self
pub fn reset_id(&mut self) -> &mut Self
pub fn mopt_id(&mut self, value: Option<SlackBotId>) -> &mut Self
pub fn with_id(self, value: SlackBotId) -> Self
pub fn without_id(self) -> Self
pub fn opt_id(self, value: Option<SlackBotId>) -> Self
pub fn name(&mut self, value: String) -> &mut Self
pub fn with_name(self, value: String) -> Self
pub fn updated(&mut self, value: SlackDateTime) -> &mut Self
pub fn reset_updated(&mut self) -> &mut Self
pub fn mopt_updated(&mut self, value: Option<SlackDateTime>) -> &mut Self
pub fn with_updated(self, value: SlackDateTime) -> Self
pub fn without_updated(self) -> Self
pub fn opt_updated(self, value: Option<SlackDateTime>) -> Self
pub fn app_id(&mut self, value: String) -> &mut Self
pub fn with_app_id(self, value: String) -> Self
pub fn user_id(&mut self, value: String) -> &mut Self
pub fn with_user_id(self, value: String) -> Self
pub fn icons(&mut self, value: SlackIconImages) -> &mut Self
pub fn reset_icons(&mut self) -> &mut Self
pub fn mopt_icons(&mut self, value: Option<SlackIconImages>) -> &mut Self
pub fn with_icons(self, value: SlackIconImages) -> Self
pub fn without_icons(self) -> Self
pub fn opt_icons(self, value: Option<SlackIconImages>) -> Self
Trait Implementations
sourceimpl Clone for SlackBotInfo
impl Clone for SlackBotInfo
sourcefn clone(&self) -> SlackBotInfo
fn clone(&self) -> SlackBotInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SlackBotInfo
impl Debug for SlackBotInfo
sourceimpl<'de> Deserialize<'de> for SlackBotInfo
impl<'de> Deserialize<'de> for SlackBotInfo
sourcefn 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
sourceimpl From<SlackBotInfoInit> for SlackBotInfo
impl From<SlackBotInfoInit> for SlackBotInfo
sourcefn from(value: SlackBotInfoInit) -> Self
fn from(value: SlackBotInfoInit) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SlackBotInfo> for SlackBotInfo
impl PartialEq<SlackBotInfo> for SlackBotInfo
sourcefn eq(&self, other: &SlackBotInfo) -> bool
fn eq(&self, other: &SlackBotInfo) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SlackBotInfo) -> bool
fn ne(&self, other: &SlackBotInfo) -> bool
This method tests for !=.
sourceimpl Serialize for SlackBotInfo
impl Serialize for SlackBotInfo
impl StructuralPartialEq for SlackBotInfo
Auto Trait Implementations
impl RefUnwindSafe for SlackBotInfo
impl Send for SlackBotInfo
impl Sync for SlackBotInfo
impl Unpin for SlackBotInfo
impl UnwindSafe for SlackBotInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more