pub struct SlackStarsItemFileComment {
pub file: SlackFile,
pub comment: String,
pub channel: SlackChannelId,
pub date_create: SlackDateTime,
}
Fields§
§file: SlackFile
§comment: String
§channel: SlackChannelId
§date_create: SlackDateTime
Implementations§
source§impl SlackStarsItemFileComment
impl SlackStarsItemFileComment
pub fn new( file: SlackFile, comment: String, channel: SlackChannelId, date_create: SlackDateTime ) -> Self
pub fn file(&mut self, value: SlackFile) -> &mut Self
pub fn with_file(self, value: SlackFile) -> Self
pub fn comment(&mut self, value: String) -> &mut Self
pub fn with_comment(self, value: String) -> Self
pub fn channel(&mut self, value: SlackChannelId) -> &mut Self
pub fn with_channel(self, value: SlackChannelId) -> Self
pub fn date_create(&mut self, value: SlackDateTime) -> &mut Self
pub fn with_date_create(self, value: SlackDateTime) -> Self
Trait Implementations§
source§impl Clone for SlackStarsItemFileComment
impl Clone for SlackStarsItemFileComment
source§fn clone(&self) -> SlackStarsItemFileComment
fn clone(&self) -> SlackStarsItemFileComment
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 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.
source§impl PartialEq for SlackStarsItemFileComment
impl PartialEq for SlackStarsItemFileComment
source§fn eq(&self, other: &SlackStarsItemFileComment) -> bool
fn eq(&self, other: &SlackStarsItemFileComment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SlackStarsItemFileComment
Auto Trait Implementations§
impl RefUnwindSafe for SlackStarsItemFileComment
impl Send for SlackStarsItemFileComment
impl Sync for SlackStarsItemFileComment
impl Unpin 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