pub struct SlackChannelDetails {
pub value: String,
pub creator: Option<SlackUserId>,
pub last_set: Option<SlackDateTime>,
}Fields§
§value: String§creator: Option<SlackUserId>§last_set: Option<SlackDateTime>Implementations§
Source§impl SlackChannelDetails
impl SlackChannelDetails
Sourcepub fn new(value: String) -> Self
pub fn new(value: String) -> Self
Creates a new SlackChannelDetails from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn with_value(self, value: String) -> Self
pub fn with_value(self, value: String) -> Self
Returns self with value set to value.
Sourcepub fn creator(&mut self, value: SlackUserId) -> &mut Self
pub fn creator(&mut self, value: SlackUserId) -> &mut Self
Sets creator to Some(value).
Sourcepub fn reset_creator(&mut self) -> &mut Self
pub fn reset_creator(&mut self) -> &mut Self
Sets creator to None.
Sourcepub fn mopt_creator(&mut self, value: Option<SlackUserId>) -> &mut Self
pub fn mopt_creator(&mut self, value: Option<SlackUserId>) -> &mut Self
Sets creator to the given Option.
Sourcepub fn with_creator(self, value: SlackUserId) -> Self
pub fn with_creator(self, value: SlackUserId) -> Self
Returns self with creator set to Some(value).
Sourcepub fn without_creator(self) -> Self
pub fn without_creator(self) -> Self
Returns self with creator set to None.
Sourcepub fn opt_creator(self, value: Option<SlackUserId>) -> Self
pub fn opt_creator(self, value: Option<SlackUserId>) -> Self
Returns self with creator set to the given Option.
Sourcepub fn last_set(&mut self, value: SlackDateTime) -> &mut Self
pub fn last_set(&mut self, value: SlackDateTime) -> &mut Self
Sets last_set to Some(value).
Sourcepub fn reset_last_set(&mut self) -> &mut Self
pub fn reset_last_set(&mut self) -> &mut Self
Sets last_set to None.
Sourcepub fn mopt_last_set(&mut self, value: Option<SlackDateTime>) -> &mut Self
pub fn mopt_last_set(&mut self, value: Option<SlackDateTime>) -> &mut Self
Sets last_set to the given Option.
Sourcepub fn with_last_set(self, value: SlackDateTime) -> Self
pub fn with_last_set(self, value: SlackDateTime) -> Self
Returns self with last_set set to Some(value).
Sourcepub fn without_last_set(self) -> Self
pub fn without_last_set(self) -> Self
Returns self with last_set set to None.
Sourcepub fn opt_last_set(self, value: Option<SlackDateTime>) -> Self
pub fn opt_last_set(self, value: Option<SlackDateTime>) -> Self
Returns self with last_set set to the given Option.
Trait Implementations§
Source§impl Clone for SlackChannelDetails
impl Clone for SlackChannelDetails
Source§impl Debug for SlackChannelDetails
impl Debug for SlackChannelDetails
Source§impl<'de> Deserialize<'de> for SlackChannelDetails
impl<'de> Deserialize<'de> for SlackChannelDetails
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<SlackChannelDetailsInit> for SlackChannelDetails
impl From<SlackChannelDetailsInit> for SlackChannelDetails
Source§fn from(value: SlackChannelDetailsInit) -> Self
fn from(value: SlackChannelDetailsInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackChannelDetails
impl PartialEq for SlackChannelDetails
Source§impl Serialize for SlackChannelDetails
impl Serialize for SlackChannelDetails
impl StructuralPartialEq for SlackChannelDetails
Auto Trait Implementations§
impl Freeze for SlackChannelDetails
impl RefUnwindSafe for SlackChannelDetails
impl Send for SlackChannelDetails
impl Sync for SlackChannelDetails
impl Unpin for SlackChannelDetails
impl UnsafeUnpin for SlackChannelDetails
impl UnwindSafe for SlackChannelDetails
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