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