pub struct WorkspaceMessage {
pub archived_at: Option<i64>,
pub created_at: Option<i64>,
pub message_body: String,
pub message_id: String,
pub message_type: WorkspaceMessageType,
}Expand description
WorkspaceMessage
JSON schema
{
"type": "object",
"required": [
"messageBody",
"messageId",
"messageType"
],
"properties": {
"archivedAt": {
"description": "Unix timestamp (in seconds) when the message was archived.",
"type": [
"integer",
"null"
],
"format": "int64"
},
"createdAt": {
"description": "Unix timestamp (in seconds) when the message was created.",
"type": [
"integer",
"null"
],
"format": "int64"
},
"messageBody": {
"type": "string"
},
"messageId": {
"type": "string"
},
"messageType": {
"$ref": "#/definitions/WorkspaceMessageType"
}
}
}Fields§
§archived_at: Option<i64>Unix timestamp (in seconds) when the message was archived.
created_at: Option<i64>Unix timestamp (in seconds) when the message was created.
message_body: String§message_id: String§message_type: WorkspaceMessageTypeTrait Implementations§
Source§impl Clone for WorkspaceMessage
impl Clone for WorkspaceMessage
Source§fn clone(&self) -> WorkspaceMessage
fn clone(&self) -> WorkspaceMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkspaceMessage
impl Debug for WorkspaceMessage
Source§impl<'de> Deserialize<'de> for WorkspaceMessage
impl<'de> Deserialize<'de> for WorkspaceMessage
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
Auto Trait Implementations§
impl Freeze for WorkspaceMessage
impl RefUnwindSafe for WorkspaceMessage
impl Send for WorkspaceMessage
impl Sync for WorkspaceMessage
impl Unpin for WorkspaceMessage
impl UnsafeUnpin for WorkspaceMessage
impl UnwindSafe for WorkspaceMessage
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