#[non_exhaustive]pub struct MessageCreate {
pub content: String,
pub peer_id: String,
pub metadata: Option<HashMap<String, Value>>,
pub configuration: Option<MessageConfiguration>,
pub created_at: Option<DateTime<Utc>>,
}Expand description
Parameters for creating a single message.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.content: StringMessage content text (max 25 000 characters, server-validated).
peer_id: StringID of the peer authoring the message.
metadata: Option<HashMap<String, Value>>Optional arbitrary metadata.
configuration: Option<MessageConfiguration>Optional message-level configuration.
created_at: Option<DateTime<Utc>>Optional override for the creation timestamp.
Implementations§
Source§impl MessageCreate
impl MessageCreate
Sourcepub fn builder() -> MessageCreateBuilder
pub fn builder() -> MessageCreateBuilder
Create an instance of MessageCreate using the builder syntax
Trait Implementations§
Source§impl Clone for MessageCreate
impl Clone for MessageCreate
Source§fn clone(&self) -> MessageCreate
fn clone(&self) -> MessageCreate
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 MessageCreate
impl Debug for MessageCreate
Source§impl<'de> Deserialize<'de> for MessageCreate
impl<'de> Deserialize<'de> for MessageCreate
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
impl Eq for MessageCreate
Source§impl PartialEq for MessageCreate
impl PartialEq for MessageCreate
Source§impl Serialize for MessageCreate
impl Serialize for MessageCreate
impl StructuralPartialEq for MessageCreate
Auto Trait Implementations§
impl Freeze for MessageCreate
impl RefUnwindSafe for MessageCreate
impl Send for MessageCreate
impl Sync for MessageCreate
impl Unpin for MessageCreate
impl UnsafeUnpin for MessageCreate
impl UnwindSafe for MessageCreate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.