pub struct Snapshot {
pub archive: Option<Attachment>,
pub annotations: Option<Vec<Annotation>>,
pub annotations2: Option<Vec<Annotation>>,
/* private fields */
}
Expand description
Snapshot about the device’s state.
Clients typically upload the data straight to servers. So the data comes in the form of arbitrary key-value pairs that clients can directly forward to the servers.
Fields§
§archive: Option<Attachment>
A <filename, ZIP archive> pair.
The ZIP archive contains several files corresponding to the various data it collected from the platform. There is typically one file for all the annotations (device uptime, build version, etc.) and one file per attachment (logs, Inspect data, etc.).
Not set if |response_channel| was set in the request.
annotations: Option<Vec<Annotation>>
A vector of key-value string pairs. Keys are guaranteed to be unique.
While the annotations are included in the ZIP archive itself, some clients also want them separately to index or augment them so we provide them separately as well.
§Deprecation
Feedback is getting close to the limit defined by MAX_NUM_ANNOTATIONS_PROVIDED. Clients should migrate to |annotations2|, which will include all annotations included in |annotations| but has a higher limit for future growth.
annotations2: Option<Vec<Annotation>>
A vector of key-value string pairs. Keys are guaranteed to be unique.
While the annotations are included in the ZIP archive itself, some clients also want them separately to index or augment them so we provide them separately as well.
Trait Implementations§
Source§impl Decode<Snapshot, DefaultFuchsiaResourceDialect> for Snapshot
impl Decode<Snapshot, DefaultFuchsiaResourceDialect> for Snapshot
Source§impl ResourceTypeMarker for Snapshot
impl ResourceTypeMarker for Snapshot
Source§type Borrowed<'a> = &'a mut Snapshot
type Borrowed<'a> = &'a mut Snapshot
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for Snapshot
impl TypeMarker for Snapshot
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.