pub struct Observation {
pub id: Uuid,
pub device_id: DeviceId,
pub captured_at_ms: u64,
pub viewport: Viewport,
pub screenshot: Option<AssetRef>,
pub screenshot_omission: Option<ScreenshotOmissionReason>,
pub ui_snapshot: Option<UiSnapshotRef>,
pub ui_snapshot_omission: Option<UiSnapshotOmissionReason>,
pub metadata: Map<String, Value>,
}Fields§
§id: Uuid§device_id: DeviceId§captured_at_ms: u64§viewport: Viewport§screenshot: Option<AssetRef>§screenshot_omission: Option<ScreenshotOmissionReason>§ui_snapshot: Option<UiSnapshotRef>§ui_snapshot_omission: Option<UiSnapshotOmissionReason>§metadata: Map<String, Value>Implementations§
Source§impl Observation
impl Observation
Sourcepub fn asset_refs(&self) -> impl Iterator<Item = &AssetRef>
pub fn asset_refs(&self) -> impl Iterator<Item = &AssetRef>
Returns every typed Evidence reference owned by this Observation.
Sourcepub const fn ui_snapshot_state_is_valid(&self) -> bool
pub const fn ui_snapshot_state_is_valid(&self) -> bool
A snapshot and its omission reason are mutually exclusive. Both absent preserves the pre-1.5 Observation shape and represents no claim.
Trait Implementations§
Source§impl Clone for Observation
impl Clone for Observation
Source§fn clone(&self) -> Observation
fn clone(&self) -> Observation
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 Observation
impl Debug for Observation
Source§impl<'de> Deserialize<'de> for Observation
impl<'de> Deserialize<'de> for Observation
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 JsonSchema for Observation
impl JsonSchema for Observation
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for Observation
impl PartialEq for Observation
Source§impl Serialize for Observation
impl Serialize for Observation
impl StructuralPartialEq for Observation
Auto Trait Implementations§
impl Freeze for Observation
impl RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl UnsafeUnpin for Observation
impl UnwindSafe for Observation
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