pub struct SlackBasicChannelInfo {
pub id: SlackChannelId,
pub name: Option<String>,
}Fields§
§id: SlackChannelId§name: Option<String>Implementations§
Source§impl SlackBasicChannelInfo
impl SlackBasicChannelInfo
Sourcepub fn new(id: SlackChannelId) -> Self
pub fn new(id: SlackChannelId) -> Self
Creates a new SlackBasicChannelInfo from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn id(&mut self, value: SlackChannelId) -> &mut Self
pub fn id(&mut self, value: SlackChannelId) -> &mut Self
Sets id to value.
Sourcepub fn with_id(self, value: SlackChannelId) -> Self
pub fn with_id(self, value: SlackChannelId) -> Self
Returns self with id set to value.
Sourcepub fn reset_name(&mut self) -> &mut Self
pub fn reset_name(&mut self) -> &mut Self
Sets name to None.
Sourcepub fn without_name(self) -> Self
pub fn without_name(self) -> Self
Returns self with name set to None.
Trait Implementations§
Source§impl Clone for SlackBasicChannelInfo
impl Clone for SlackBasicChannelInfo
Source§impl Debug for SlackBasicChannelInfo
impl Debug for SlackBasicChannelInfo
Source§impl<'de> Deserialize<'de> for SlackBasicChannelInfo
impl<'de> Deserialize<'de> for SlackBasicChannelInfo
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<SlackBasicChannelInfoInit> for SlackBasicChannelInfo
impl From<SlackBasicChannelInfoInit> for SlackBasicChannelInfo
Source§fn from(value: SlackBasicChannelInfoInit) -> Self
fn from(value: SlackBasicChannelInfoInit) -> Self
Converts to this type from the input type.
Source§impl HasChannelInfo for SlackBasicChannelInfo
impl HasChannelInfo for SlackBasicChannelInfo
fn get_channel_id(&self) -> &SlackChannelId
Source§impl PartialEq for SlackBasicChannelInfo
impl PartialEq for SlackBasicChannelInfo
Source§impl Serialize for SlackBasicChannelInfo
impl Serialize for SlackBasicChannelInfo
impl StructuralPartialEq for SlackBasicChannelInfo
Auto Trait Implementations§
impl Freeze for SlackBasicChannelInfo
impl RefUnwindSafe for SlackBasicChannelInfo
impl Send for SlackBasicChannelInfo
impl Sync for SlackBasicChannelInfo
impl Unpin for SlackBasicChannelInfo
impl UnsafeUnpin for SlackBasicChannelInfo
impl UnwindSafe for SlackBasicChannelInfo
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