Struct slack_morphism::prelude::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) -> SlackBotInfo
pub fn id(&mut self, value: SlackBotId) -> &mut SlackBotInfo
pub fn reset_id(&mut self) -> &mut SlackBotInfo
pub fn mopt_id(&mut self, value: Option<SlackBotId>) -> &mut SlackBotInfo
pub fn with_id(self, value: SlackBotId) -> SlackBotInfo
pub fn without_id(self) -> SlackBotInfo
pub fn opt_id(self, value: Option<SlackBotId>) -> SlackBotInfo
pub fn name(&mut self, value: String) -> &mut SlackBotInfo
pub fn with_name(self, value: String) -> SlackBotInfo
pub fn updated(&mut self, value: SlackDateTime) -> &mut SlackBotInfo
pub fn reset_updated(&mut self) -> &mut SlackBotInfo
pub fn mopt_updated(&mut self, value: Option<SlackDateTime>) -> &mut SlackBotInfo
pub fn with_updated(self, value: SlackDateTime) -> SlackBotInfo
pub fn without_updated(self) -> SlackBotInfo
pub fn opt_updated(self, value: Option<SlackDateTime>) -> SlackBotInfo
pub fn app_id(&mut self, value: String) -> &mut SlackBotInfo
pub fn with_app_id(self, value: String) -> SlackBotInfo
pub fn user_id(&mut self, value: String) -> &mut SlackBotInfo
pub fn with_user_id(self, value: String) -> SlackBotInfo
pub fn icons(&mut self, value: SlackIconImages) -> &mut SlackBotInfo
pub fn reset_icons(&mut self) -> &mut SlackBotInfo
pub fn mopt_icons(&mut self, value: Option<SlackIconImages>) -> &mut SlackBotInfo
pub fn with_icons(self, value: SlackIconImages) -> SlackBotInfo
pub fn without_icons(self) -> SlackBotInfo
pub fn opt_icons(self, value: Option<SlackIconImages>) -> SlackBotInfo
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<SlackBotInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackBotInfo, <__D as Deserializer<'de>>::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) -> SlackBotInfo
fn from(value: SlackBotInfoInit) -> SlackBotInfo
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
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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