pub struct ExportDocument {
pub format_version: u32,
pub exported_at: DateTime<Utc>,
pub server_version: String,
pub streams: Vec<ExportedStream>,
}Expand description
Top-level envelope for an export/import JSON file.
The format_version field enables forward-compatible schema evolution:
readers reject versions they do not understand.
Fields§
§format_version: u32Schema version (currently FORMAT_VERSION).
exported_at: DateTime<Utc>Timestamp when the export was created.
server_version: StringServer crate version that produced the export.
streams: Vec<ExportedStream>Exported streams with their messages.
Trait Implementations§
Source§impl Debug for ExportDocument
impl Debug for ExportDocument
Source§impl<'de> Deserialize<'de> for ExportDocument
impl<'de> Deserialize<'de> for ExportDocument
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 ExportDocument
impl RefUnwindSafe for ExportDocument
impl Send for ExportDocument
impl Sync for ExportDocument
impl Unpin for ExportDocument
impl UnsafeUnpin for ExportDocument
impl UnwindSafe for ExportDocument
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