pub struct CreateTopicReqPayload {
pub first_user_message: Option<Option<String>>,
pub name: Option<Option<String>>,
pub owner_id: String,
}Fields§
§first_user_message: Option<Option<String>>The first message which will belong to the topic. The topic name is generated based on this message similar to how it works in the OpenAI chat UX if a name is not explicitly provided on the name request body key.
name: Option<Option<String>>The name of the topic. If this is not provided, the topic name is generated from the first_user_message.
owner_id: StringThe owner_id of the topic. This is typically a browser fingerprint or your user’s id. It is used to group topics together for a user.
Implementations§
Source§impl CreateTopicReqPayload
impl CreateTopicReqPayload
pub fn new(owner_id: String) -> CreateTopicReqPayload
Trait Implementations§
Source§impl Clone for CreateTopicReqPayload
impl Clone for CreateTopicReqPayload
Source§fn clone(&self) -> CreateTopicReqPayload
fn clone(&self) -> CreateTopicReqPayload
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 CreateTopicReqPayload
impl Debug for CreateTopicReqPayload
Source§impl Default for CreateTopicReqPayload
impl Default for CreateTopicReqPayload
Source§fn default() -> CreateTopicReqPayload
fn default() -> CreateTopicReqPayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateTopicReqPayload
impl<'de> Deserialize<'de> for CreateTopicReqPayload
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 CreateTopicReqPayload
impl PartialEq for CreateTopicReqPayload
Source§impl Serialize for CreateTopicReqPayload
impl Serialize for CreateTopicReqPayload
impl StructuralPartialEq for CreateTopicReqPayload
Auto Trait Implementations§
impl Freeze for CreateTopicReqPayload
impl RefUnwindSafe for CreateTopicReqPayload
impl Send for CreateTopicReqPayload
impl Sync for CreateTopicReqPayload
impl Unpin for CreateTopicReqPayload
impl UnwindSafe for CreateTopicReqPayload
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