Struct slack_morphism_models::SlackMessage
source · [−]pub struct SlackMessage {
pub origin: SlackMessageOrigin,
pub content: SlackMessageContent,
pub parent: SlackParentMessageParams,
}
Fields
origin: SlackMessageOrigin
content: SlackMessageContent
parent: SlackParentMessageParams
Implementations
sourceimpl SlackMessage
impl SlackMessage
pub fn new(
origin: SlackMessageOrigin,
content: SlackMessageContent,
parent: SlackParentMessageParams
) -> Self
pub fn origin(&mut self, value: SlackMessageOrigin) -> &mut Self
pub fn with_origin(self, value: SlackMessageOrigin) -> Self
pub fn content(&mut self, value: SlackMessageContent) -> &mut Self
pub fn with_content(self, value: SlackMessageContent) -> Self
pub fn parent(&mut self, value: SlackParentMessageParams) -> &mut Self
pub fn with_parent(self, value: SlackParentMessageParams) -> Self
Trait Implementations
sourceimpl Clone for SlackMessage
impl Clone for SlackMessage
sourcefn clone(&self) -> SlackMessage
fn clone(&self) -> SlackMessage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SlackMessage
impl Debug for SlackMessage
sourceimpl<'de> Deserialize<'de> for SlackMessage
impl<'de> Deserialize<'de> for SlackMessage
sourcefn 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
sourceimpl From<SlackMessageInit> for SlackMessage
impl From<SlackMessageInit> for SlackMessage
sourcefn from(value: SlackMessageInit) -> Self
fn from(value: SlackMessageInit) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SlackMessage> for SlackMessage
impl PartialEq<SlackMessage> for SlackMessage
sourcefn eq(&self, other: &SlackMessage) -> bool
fn eq(&self, other: &SlackMessage) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SlackMessage) -> bool
fn ne(&self, other: &SlackMessage) -> bool
This method tests for !=
.
sourceimpl Serialize for SlackMessage
impl Serialize for SlackMessage
impl StructuralPartialEq for SlackMessage
Auto Trait Implementations
impl RefUnwindSafe for SlackMessage
impl Send for SlackMessage
impl Sync for SlackMessage
impl Unpin for SlackMessage
impl UnwindSafe for SlackMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more