pub struct Batch {
pub schema_version: u32,
pub sent_at: String,
pub install_id: String,
pub app_version: String,
pub git_sha: Option<String>,
pub surface: Surface,
pub os: Os,
pub arch: Arch,
pub libc: Libc,
pub tty: bool,
pub events: Vec<Event>,
}Expand description
The POST body. One per flush.
Fields§
§schema_version: u32§sent_at: StringRFC3339 UTC, second precision. Per-batch only — events carry no timestamps at all.
install_id: StringRandom v4 UUID stored on this machine, rotated every 90 days.
app_version: StringCARGO_PKG_VERSION. Must match ^\d+\.\d+\.\d+(-[0-9A-Za-z.]+)?$.
git_sha: Option<String>First 12 hex chars of the release-CI build sha, or null for every
locally built binary.
surface: SurfaceWhich surface produced this batch.
os: OsOS family.
arch: ArchCPU family.
libc: LibcCompile-time libc.
tty: boolWhether both stdin and stdout were terminals.
events: Vec<Event>The events.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Batch
impl<'de> Deserialize<'de> for Batch
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
impl Eq for Batch
impl StructuralPartialEq for Batch
Auto Trait Implementations§
impl Freeze for Batch
impl RefUnwindSafe for Batch
impl Send for Batch
impl Sync for Batch
impl Unpin for Batch
impl UnsafeUnpin for Batch
impl UnwindSafe for Batch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.