pub enum PrivacyAction {
Apply {
control: PrivacyControl,
expected: PrivacyValue,
},
Restore {
control: PrivacyControl,
expected: PrivacyValue,
},
Reconcile {
expected: PrivacyValue,
},
}Expand description
One change the person confirmed on the page. expected is the value
the page showed when the person confirmed; the host writes nothing when
its fresh read differs (crates/sprawling/spec/Privacy/Confirmation.lean
D58).
Variants§
Apply
Write the control’s value over expected.
Restore
Put back the value this app’s latest change of the control found.
Reconcile
The person’s check of the operation that has no conclusion:
expected is the value the page showed for its control. Writes
nothing.
Fields
§
expected: PrivacyValueTrait Implementations§
Source§impl Clone for PrivacyAction
impl Clone for PrivacyAction
Source§impl Debug for PrivacyAction
impl Debug for PrivacyAction
Source§impl<'de> Deserialize<'de> for PrivacyAction
impl<'de> Deserialize<'de> for PrivacyAction
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 PrivacyAction
Source§impl PartialEq for PrivacyAction
impl PartialEq for PrivacyAction
Source§impl Serialize for PrivacyAction
impl Serialize for PrivacyAction
impl StructuralPartialEq for PrivacyAction
Auto Trait Implementations§
impl Freeze for PrivacyAction
impl RefUnwindSafe for PrivacyAction
impl Send for PrivacyAction
impl Sync for PrivacyAction
impl Unpin for PrivacyAction
impl UnsafeUnpin for PrivacyAction
impl UnwindSafe for PrivacyAction
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