pub enum PrivacyValue {
Absent,
Dword {
number: u32,
},
Text {
text: String,
},
Raw {
kind: u32,
hex: String,
},
TaskAbsent,
TaskEnabled {
definition_sha256: String,
},
TaskDisabled {
definition_sha256: String,
},
}Expand description
One value of a target, exactly as the host holds it.
Every value has exactly one spelling: a registry value is dword when
it is a REG_DWORD of four bytes, text when it is a REG_SZ whose
bytes are UTF-16 ending in one terminating NUL, and raw otherwise. A
page sends a value back as expected unchanged, and the host turns it
into the bytes it compares with what it reads, refusing any other
spelling (crates/wire/spec/Privacy.lean D50).
Variants§
Absent
The registry value does not exist.
Dword
Text
Raw
Any other registry value: its type code and its bytes in lowercase hex.
TaskAbsent
The host has no such task.
TaskEnabled
The digest covers the task’s definition without its enabled flag, in lowercase hex.
TaskDisabled
Trait Implementations§
Source§impl Clone for PrivacyValue
impl Clone for PrivacyValue
Source§impl Debug for PrivacyValue
impl Debug for PrivacyValue
Source§impl<'de> Deserialize<'de> for PrivacyValue
impl<'de> Deserialize<'de> for PrivacyValue
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
impl Eq for PrivacyValue
Source§impl PartialEq for PrivacyValue
impl PartialEq for PrivacyValue
Source§impl Serialize for PrivacyValue
impl Serialize for PrivacyValue
impl StructuralPartialEq for PrivacyValue
Auto Trait Implementations§
impl Freeze for PrivacyValue
impl RefUnwindSafe for PrivacyValue
impl Send for PrivacyValue
impl Sync for PrivacyValue
impl Unpin for PrivacyValue
impl UnsafeUnpin for PrivacyValue
impl UnwindSafe for PrivacyValue
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