pub struct Batch {
pub batch_id: BatchId,
pub session_id: SessionId,
pub device_id: Option<DeviceId>,
pub wire_version: WireVersion,
pub app_version: String,
pub os: OsKind,
pub os_major: u16,
pub sdk_version: String,
pub events: Vec<RawEvent>,
}Fields§
§batch_id: BatchId§session_id: SessionId§device_id: Option<DeviceId>Optional — added after wire v1 shipped. Old clients omit it (serde
defaults to None); old servers ignore it (no deny_unknown_fields).
No wire_version bump needed.
wire_version: WireVersion§app_version: String§os: OsKind§os_major: u16§sdk_version: String§events: Vec<RawEvent>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
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