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