pub struct RemoteDataExport {
pub install_id: String,
pub fetched_at: SystemTime,
pub adapter: &'static str,
pub endpoint: String,
pub schema_version: u32,
pub events: Vec<RemoteEvent>,
pub server_metadata: BTreeMap<String, RemoteValue>,
}Expand description
Server-side data fetched by UsageReporter::fetch_remote_data.
Self-describing: the schema_version, endpoint, and adapter
fields make the exported document a complete RGPD Art. 20
portability artifact when serialized to JSON. The widget’s
“Save as JSON…” button writes this struct verbatim.
Serialize is derived; Deserialize is not (the adapter field
is &'static str). The export is a write-only artifact.
Fields§
§install_id: String§fetched_at: SystemTime§adapter: &'static str§endpoint: String§schema_version: u32§events: Vec<RemoteEvent>§server_metadata: BTreeMap<String, RemoteValue>Trait Implementations§
Source§impl Clone for RemoteDataExport
impl Clone for RemoteDataExport
Source§fn clone(&self) -> RemoteDataExport
fn clone(&self) -> RemoteDataExport
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 RemoteDataExport
impl Debug for RemoteDataExport
Auto Trait Implementations§
impl Freeze for RemoteDataExport
impl RefUnwindSafe for RemoteDataExport
impl Send for RemoteDataExport
impl Sync for RemoteDataExport
impl Unpin for RemoteDataExport
impl UnsafeUnpin for RemoteDataExport
impl UnwindSafe for RemoteDataExport
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