pub struct CreateChatParams {
pub channel: Uri,
pub chat: Uri,
pub initial_message: Option<Message>,
pub source: Option<ChatForkSource>,
}Expand description
Creates a new chat within a session.
Fields§
§channel: UriChannel URI this command targets.
chat: UriChat URI (client-chosen, e.g. ahp-chat:/<uuid>).
initial_message: Option<Message>Optional initial message for the new chat.
source: Option<ChatForkSource>Optional source chat and turn to fork from.
Trait Implementations§
Source§impl Clone for CreateChatParams
impl Clone for CreateChatParams
Source§fn clone(&self) -> CreateChatParams
fn clone(&self) -> CreateChatParams
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 CreateChatParams
impl Debug for CreateChatParams
Source§impl<'de> Deserialize<'de> for CreateChatParams
impl<'de> Deserialize<'de> for CreateChatParams
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 CreateChatParams
impl PartialEq for CreateChatParams
Source§fn eq(&self, other: &CreateChatParams) -> bool
fn eq(&self, other: &CreateChatParams) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CreateChatParams
impl Serialize for CreateChatParams
impl StructuralPartialEq for CreateChatParams
Auto Trait Implementations§
impl Freeze for CreateChatParams
impl RefUnwindSafe for CreateChatParams
impl Send for CreateChatParams
impl Sync for CreateChatParams
impl Unpin for CreateChatParams
impl UnsafeUnpin for CreateChatParams
impl UnwindSafe for CreateChatParams
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