pub struct SlackPin {
pub channel: SlackChannelId,
pub created: SlackDateTime,
pub created_by: SlackUserId,
pub message: Option<SlackMessage>,
}Fields§
§channel: SlackChannelId§created: SlackDateTime§created_by: SlackUserId§message: Option<SlackMessage>Implementations§
Source§impl SlackPin
impl SlackPin
pub fn new( channel: SlackChannelId, created: SlackDateTime, created_by: SlackUserId, ) -> Self
pub fn channel(&mut self, value: SlackChannelId) -> &mut Self
pub fn with_channel(self, value: SlackChannelId) -> Self
pub fn created(&mut self, value: SlackDateTime) -> &mut Self
pub fn with_created(self, value: SlackDateTime) -> Self
pub fn created_by(&mut self, value: SlackUserId) -> &mut Self
pub fn with_created_by(self, value: SlackUserId) -> Self
pub fn message(&mut self, value: SlackMessage) -> &mut Self
pub fn reset_message(&mut self) -> &mut Self
pub fn mopt_message(&mut self, value: Option<SlackMessage>) -> &mut Self
pub fn with_message(self, value: SlackMessage) -> Self
pub fn without_message(self) -> Self
pub fn opt_message(self, value: Option<SlackMessage>) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlackPin
impl<'de> Deserialize<'de> for SlackPin
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<SlackPinInit> for SlackPin
impl From<SlackPinInit> for SlackPin
Source§fn from(value: SlackPinInit) -> Self
fn from(value: SlackPinInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackPin
Auto Trait Implementations§
impl Freeze for SlackPin
impl RefUnwindSafe for SlackPin
impl Send for SlackPin
impl Sync for SlackPin
impl Unpin for SlackPin
impl UnwindSafe for SlackPin
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