Struct openai_api_rs::v1::message::MessageObject
source · pub struct MessageObject {
pub id: String,
pub object: String,
pub created_at: i64,
pub thread_id: String,
pub role: MessageRole,
pub content: Vec<Content>,
pub assistant_id: Option<String>,
pub run_id: Option<String>,
pub file_ids: Vec<String>,
pub metadata: HashMap<String, String>,
}
Fields§
§id: String
§object: String
§created_at: i64
§thread_id: String
§role: MessageRole
§content: Vec<Content>
§assistant_id: Option<String>
§run_id: Option<String>
§file_ids: Vec<String>
§metadata: HashMap<String, String>
Trait Implementations§
source§impl Debug for MessageObject
impl Debug for MessageObject
source§impl<'de> Deserialize<'de> for MessageObject
impl<'de> Deserialize<'de> for MessageObject
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 RefUnwindSafe for MessageObject
impl Send for MessageObject
impl Sync for MessageObject
impl Unpin for MessageObject
impl UnwindSafe for MessageObject
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