pub struct AiSessionBackup {
pub id: String,
pub head: HashMap<String, Value>,
pub chats: Vec<AiSessionBackupChat>,
pub images: Vec<AiSessionBackupImage>,
pub artifacts: Option<HashMap<String, Value>>,
pub next: Option<Box<AiSessionBackupCursor>>,
pub listing: String,
pub moved: Option<bool>,
}Fields§
§id: String§head: HashMap<String, Value>§chats: Vec<AiSessionBackupChat>§images: Vec<AiSessionBackupImage>§artifacts: Option<HashMap<String, Value>>§next: Option<Box<AiSessionBackupCursor>>§listing: Stringa fingerprint of the session’s listing; pages of one session whose fingerprints differ do not belong together
moved: Option<bool>the backup kept changing while this page was read, so it may mix two versions; the browser starts the session over
Implementations§
Source§impl AiSessionBackup
impl AiSessionBackup
pub fn new( id: String, head: HashMap<String, Value>, chats: Vec<AiSessionBackupChat>, images: Vec<AiSessionBackupImage>, listing: String, ) -> AiSessionBackup
Trait Implementations§
Source§impl Clone for AiSessionBackup
impl Clone for AiSessionBackup
Source§fn clone(&self) -> AiSessionBackup
fn clone(&self) -> AiSessionBackup
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 AiSessionBackup
impl Debug for AiSessionBackup
Source§impl Default for AiSessionBackup
impl Default for AiSessionBackup
Source§fn default() -> AiSessionBackup
fn default() -> AiSessionBackup
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AiSessionBackup
impl<'de> Deserialize<'de> for AiSessionBackup
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 AiSessionBackup
impl PartialEq for AiSessionBackup
Source§impl Serialize for AiSessionBackup
impl Serialize for AiSessionBackup
impl StructuralPartialEq for AiSessionBackup
Auto Trait Implementations§
impl Freeze for AiSessionBackup
impl RefUnwindSafe for AiSessionBackup
impl Send for AiSessionBackup
impl Sync for AiSessionBackup
impl Unpin for AiSessionBackup
impl UnsafeUnpin for AiSessionBackup
impl UnwindSafe for AiSessionBackup
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