pub struct ProductReportHeader {
pub k: String,
pub v: String,
pub product_id: String,
pub product_sha256: String,
pub certification_rule: ProductCertificationRule,
pub mode: ReportMode,
pub product_label: Option<String>,
}Fields§
§k: String§v: String§product_id: String§product_sha256: String§certification_rule: ProductCertificationRule§mode: ReportMode§product_label: Option<String>Implementations§
Source§impl ProductReportHeader
impl ProductReportHeader
pub fn new( product_id: String, product_sha256: String, certification_rule: ProductCertificationRule, mode: ReportMode, product_label: Option<String>, ) -> Self
Trait Implementations§
Source§impl Clone for ProductReportHeader
impl Clone for ProductReportHeader
Source§fn clone(&self) -> ProductReportHeader
fn clone(&self) -> ProductReportHeader
Returns a duplicate 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 ProductReportHeader
impl Debug for ProductReportHeader
Source§impl<'de> Deserialize<'de> for ProductReportHeader
impl<'de> Deserialize<'de> for ProductReportHeader
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 PartialEq for ProductReportHeader
impl PartialEq for ProductReportHeader
Source§impl Serialize for ProductReportHeader
impl Serialize for ProductReportHeader
impl Eq for ProductReportHeader
impl StructuralPartialEq for ProductReportHeader
Auto Trait Implementations§
impl Freeze for ProductReportHeader
impl RefUnwindSafe for ProductReportHeader
impl Send for ProductReportHeader
impl Sync for ProductReportHeader
impl Unpin for ProductReportHeader
impl UnsafeUnpin for ProductReportHeader
impl UnwindSafe for ProductReportHeader
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,
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.