pub struct ConversationsRenameRequest {
pub conversation_id: String,
pub name: Option<String>,
pub auto_generate: bool,
pub user: String,
}Expand description
会话重命名请求
Fields§
§conversation_id: String会话 ID
name: Option<String>名称,若 auto_generate 为 true 时,该参数可不传
auto_generate: bool自动生成标题,默认 false。
user: String用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
Trait Implementations§
Source§impl Clone for ConversationsRenameRequest
impl Clone for ConversationsRenameRequest
Source§fn clone(&self) -> ConversationsRenameRequest
fn clone(&self) -> ConversationsRenameRequest
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 ConversationsRenameRequest
impl Debug for ConversationsRenameRequest
Source§impl Default for ConversationsRenameRequest
impl Default for ConversationsRenameRequest
Source§fn default() -> ConversationsRenameRequest
fn default() -> ConversationsRenameRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConversationsRenameRequest
impl<'de> Deserialize<'de> for ConversationsRenameRequest
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 ConversationsRenameRequest
impl RefUnwindSafe for ConversationsRenameRequest
impl Send for ConversationsRenameRequest
impl Sync for ConversationsRenameRequest
impl Unpin for ConversationsRenameRequest
impl UnwindSafe for ConversationsRenameRequest
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