pub struct SlackStarsItemFile {
pub file: SlackFile,
pub channel: SlackChannelId,
pub date_create: SlackDateTime,
}Fields§
§file: SlackFile§channel: SlackChannelId§date_create: SlackDateTimeImplementations§
Source§impl SlackStarsItemFile
impl SlackStarsItemFile
Sourcepub fn new(
file: SlackFile,
channel: SlackChannelId,
date_create: SlackDateTime,
) -> Self
pub fn new( file: SlackFile, channel: SlackChannelId, date_create: SlackDateTime, ) -> Self
Creates a new SlackStarsItemFile from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn channel(&mut self, value: SlackChannelId) -> &mut Self
pub fn channel(&mut self, value: SlackChannelId) -> &mut Self
Sets channel to value.
Sourcepub fn with_channel(self, value: SlackChannelId) -> Self
pub fn with_channel(self, value: SlackChannelId) -> Self
Returns self with channel set to value.
Sourcepub fn date_create(&mut self, value: SlackDateTime) -> &mut Self
pub fn date_create(&mut self, value: SlackDateTime) -> &mut Self
Sets date_create to value.
Sourcepub fn with_date_create(self, value: SlackDateTime) -> Self
pub fn with_date_create(self, value: SlackDateTime) -> Self
Returns self with date_create set to value.
Trait Implementations§
Source§impl Clone for SlackStarsItemFile
impl Clone for SlackStarsItemFile
Source§impl Debug for SlackStarsItemFile
impl Debug for SlackStarsItemFile
Source§impl<'de> Deserialize<'de> for SlackStarsItemFile
impl<'de> Deserialize<'de> for SlackStarsItemFile
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<SlackStarsItemFileInit> for SlackStarsItemFile
impl From<SlackStarsItemFileInit> for SlackStarsItemFile
Source§fn from(value: SlackStarsItemFileInit) -> Self
fn from(value: SlackStarsItemFileInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackStarsItemFile
impl PartialEq for SlackStarsItemFile
Source§impl Serialize for SlackStarsItemFile
impl Serialize for SlackStarsItemFile
impl StructuralPartialEq for SlackStarsItemFile
Auto Trait Implementations§
impl Freeze for SlackStarsItemFile
impl RefUnwindSafe for SlackStarsItemFile
impl Send for SlackStarsItemFile
impl Sync for SlackStarsItemFile
impl Unpin for SlackStarsItemFile
impl UnsafeUnpin for SlackStarsItemFile
impl UnwindSafe for SlackStarsItemFile
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