pub struct SlackBasicChannelInfo {
pub id: SlackChannelId,
pub name: Option<String>,
}
Fields§
§id: SlackChannelId
§name: Option<String>
Implementations§
Source§impl SlackBasicChannelInfo
impl SlackBasicChannelInfo
pub fn new(id: SlackChannelId) -> Self
pub fn id(&mut self, value: SlackChannelId) -> &mut Self
pub fn with_id(self, value: SlackChannelId) -> Self
pub fn name(&mut self, value: String) -> &mut Self
pub fn reset_name(&mut self) -> &mut Self
pub fn mopt_name(&mut self, value: Option<String>) -> &mut Self
pub fn with_name(self, value: String) -> Self
pub fn without_name(self) -> Self
pub fn opt_name(self, value: Option<String>) -> Self
Trait Implementations§
Source§impl Clone for SlackBasicChannelInfo
impl Clone for SlackBasicChannelInfo
Source§fn clone(&self) -> SlackBasicChannelInfo
fn clone(&self) -> SlackBasicChannelInfo
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 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)