pub struct ThreadMessageBody {
pub type: Type,
pub body: Option<String>,
pub private: Option<bool>,
pub replying_to: Option<Option<String>>,
pub old_status: Option<OldStatus>,
pub new_status: Option<NewStatus>,
}
Expand description
ThreadMessageBody : The contents of the message. Fields will vary depending on message type.
Fields§
§type: Type
The type of message
body: Option<String>
The actual message text. Only present for text
message type
private: Option<bool>
Whether the message is only visible to moderators. Only present for text
message type
replying_to: Option<Option<String>>
The ID of the message being replied to by this message. Only present for text
message type
old_status: Option<OldStatus>
The old status of the project. Only present for status_change
message type
new_status: Option<NewStatus>
The new status of the project. Only present for status_change
message type
Implementations§
Source§impl ThreadMessageBody
impl ThreadMessageBody
Sourcepub fn new(type: Type) -> ThreadMessageBody
pub fn new(type: Type) -> ThreadMessageBody
The contents of the message. Fields will vary depending on message type.
Trait Implementations§
Source§impl Clone for ThreadMessageBody
impl Clone for ThreadMessageBody
Source§fn clone(&self) -> ThreadMessageBody
fn clone(&self) -> ThreadMessageBody
Returns a duplicate 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 ThreadMessageBody
impl Debug for ThreadMessageBody
Source§impl Default for ThreadMessageBody
impl Default for ThreadMessageBody
Source§fn default() -> ThreadMessageBody
fn default() -> ThreadMessageBody
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThreadMessageBody
impl<'de> Deserialize<'de> for ThreadMessageBody
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 PartialEq for ThreadMessageBody
impl PartialEq for ThreadMessageBody
Source§impl Serialize for ThreadMessageBody
impl Serialize for ThreadMessageBody
impl StructuralPartialEq for ThreadMessageBody
Auto Trait Implementations§
impl Freeze for ThreadMessageBody
impl RefUnwindSafe for ThreadMessageBody
impl Send for ThreadMessageBody
impl Sync for ThreadMessageBody
impl Unpin for ThreadMessageBody
impl UnwindSafe for ThreadMessageBody
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