Struct fidl_fuchsia_hwinfo::ProductInfo
source · pub struct ProductInfo {Show 16 fields
pub sku: Option<String>,
pub language: Option<String>,
pub regulatory_domain: Option<RegulatoryDomain>,
pub locale_list: Option<Vec<LocaleId>>,
pub name: Option<String>,
pub model: Option<String>,
pub manufacturer: Option<String>,
pub build_date: Option<String>,
pub build_name: Option<String>,
pub colorway: Option<String>,
pub display: Option<String>,
pub memory: Option<String>,
pub nand_storage: Option<String>,
pub emmc_storage: Option<String>,
pub microphone: Option<String>,
pub audio_amplifier: Option<String>,
/* private fields */
}
Expand description
Collection of properties that is shared with other devices within the same product line.
Fields§
§sku: Option<String>
§language: Option<String>
§regulatory_domain: Option<RegulatoryDomain>
§locale_list: Option<Vec<LocaleId>>
§name: Option<String>
§model: Option<String>
§manufacturer: Option<String>
§build_date: Option<String>
§build_name: Option<String>
§colorway: Option<String>
§display: Option<String>
§memory: Option<String>
§nand_storage: Option<String>
§emmc_storage: Option<String>
§microphone: Option<String>
§audio_amplifier: Option<String>
Implementations§
source§impl ProductInfo
impl ProductInfo
Trait Implementations§
source§impl Clone for ProductInfo
impl Clone for ProductInfo
source§fn clone(&self) -> ProductInfo
fn clone(&self) -> ProductInfo
Returns a copy of the value. Read more
1.0.0 · 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 ProductInfo
impl Debug for ProductInfo
source§impl Decode<ProductInfo> for ProductInfo
impl Decode<ProductInfo> for ProductInfo
source§impl Encode<ProductInfo> for &ProductInfo
impl Encode<ProductInfo> for &ProductInfo
source§impl Encode<ProductInfo> for ProductInfo
impl Encode<ProductInfo> for ProductInfo
source§impl PartialEq<ProductInfo> for ProductInfo
impl PartialEq<ProductInfo> for ProductInfo
source§fn eq(&self, other: &ProductInfo) -> bool
fn eq(&self, other: &ProductInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for ProductInfo
impl TypeMarker for ProductInfo
§type Owned = ProductInfo
type Owned = ProductInfo
The owned Rust type which this FIDL type decodes into.
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
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
Returns true if the memory layout of
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.source§impl ValueTypeMarker for ProductInfo
impl ValueTypeMarker for ProductInfo
§type Borrowed<'a> = &'a <ProductInfo as TypeMarker>::Owned
type Borrowed<'a> = &'a <ProductInfo as TypeMarker>::Owned
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more