pub struct Content {
pub parts: Vec<Part>,
pub role: Role,
pub created_at: DateTime<Utc>,
pub author: Option<Profile>,
pub model: Option<String>,
pub via: Option<String>,
}Fields§
§parts: Vec<Part>§role: Role§created_at: DateTime<Utc>§model: Option<String>Text model id that produced a MODEL turn (for UI avatar / rehydrate).
via: Option<String>The name of the API key an agent posted this with, for its author.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Content
impl Freeze for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnsafeUnpin for Content
impl UnwindSafe for Content
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