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: String
§updated: Option<SlackDateTime>
§app_id: String
§user_id: String
§icons: Option<SlackIconImages>
Implementations§
source§impl 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§
source§impl Clone for SlackBotInfo
impl Clone for SlackBotInfo
source§fn clone(&self) -> SlackBotInfo
fn clone(&self) -> SlackBotInfo
Returns a copy 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 moresource§impl Debug for SlackBotInfo
impl Debug for SlackBotInfo
source§impl<'de> Deserialize<'de> for SlackBotInfo
impl<'de> Deserialize<'de> for SlackBotInfo
source§fn 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
source§impl From<SlackBotInfoInit> for SlackBotInfo
impl From<SlackBotInfoInit> for SlackBotInfo
source§fn from(value: SlackBotInfoInit) -> Self
fn from(value: SlackBotInfoInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackBotInfo
impl PartialEq for SlackBotInfo
source§fn 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 ==
.source§impl 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§
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