pub struct SlackApiReactionsGetMessageResponse {
pub message: SlackHistoryMessage,
pub permalink: Option<Url>,
}Fields§
§message: SlackHistoryMessage§permalink: Option<Url>Implementations§
Source§impl SlackApiReactionsGetMessageResponse
impl SlackApiReactionsGetMessageResponse
Sourcepub fn new(message: SlackHistoryMessage) -> Self
pub fn new(message: SlackHistoryMessage) -> Self
Creates a new SlackApiReactionsGetMessageResponse 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 reset_permalink(&mut self) -> &mut Self
pub fn reset_permalink(&mut self) -> &mut Self
Sets permalink to None.
Sourcepub fn mopt_permalink(&mut self, value: Option<Url>) -> &mut Self
pub fn mopt_permalink(&mut self, value: Option<Url>) -> &mut Self
Sets permalink to the given Option.
Sourcepub fn with_permalink(self, value: Url) -> Self
pub fn with_permalink(self, value: Url) -> Self
Returns self with permalink set to Some(value).
Sourcepub fn without_permalink(self) -> Self
pub fn without_permalink(self) -> Self
Returns self with permalink set to None.
Sourcepub fn opt_permalink(self, value: Option<Url>) -> Self
pub fn opt_permalink(self, value: Option<Url>) -> Self
Returns self with permalink set to the given Option.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlackApiReactionsGetMessageResponse
impl<'de> Deserialize<'de> for SlackApiReactionsGetMessageResponse
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<SlackApiReactionsGetMessageResponseInit> for SlackApiReactionsGetMessageResponse
impl From<SlackApiReactionsGetMessageResponseInit> for SlackApiReactionsGetMessageResponse
Source§fn from(value: SlackApiReactionsGetMessageResponseInit) -> Self
fn from(value: SlackApiReactionsGetMessageResponseInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackApiReactionsGetMessageResponse
Auto Trait Implementations§
impl Freeze for SlackApiReactionsGetMessageResponse
impl RefUnwindSafe for SlackApiReactionsGetMessageResponse
impl Send for SlackApiReactionsGetMessageResponse
impl Sync for SlackApiReactionsGetMessageResponse
impl Unpin for SlackApiReactionsGetMessageResponse
impl UnsafeUnpin for SlackApiReactionsGetMessageResponse
impl UnwindSafe for SlackApiReactionsGetMessageResponse
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