pub struct ApplyPolicyPatchCommand {
pub expected_revision: WireU64,
pub patch: LivePolicyPatch,
}Expand description
Optimistic policy update. The revision is mandatory: a patch without one silently overwrites whatever another writer just installed.
Fields§
§expected_revision: WireU64§patch: LivePolicyPatchTrait Implementations§
Source§impl Clone for ApplyPolicyPatchCommand
impl Clone for ApplyPolicyPatchCommand
Source§fn clone(&self) -> ApplyPolicyPatchCommand
fn clone(&self) -> ApplyPolicyPatchCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ApplyPolicyPatchCommand
impl Debug for ApplyPolicyPatchCommand
Source§impl<'de> Deserialize<'de> for ApplyPolicyPatchCommand
impl<'de> Deserialize<'de> for ApplyPolicyPatchCommand
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 ApplyPolicyPatchCommand
impl PartialEq for ApplyPolicyPatchCommand
Source§impl Serialize for ApplyPolicyPatchCommand
impl Serialize for ApplyPolicyPatchCommand
impl StructuralPartialEq for ApplyPolicyPatchCommand
Auto Trait Implementations§
impl Freeze for ApplyPolicyPatchCommand
impl RefUnwindSafe for ApplyPolicyPatchCommand
impl Send for ApplyPolicyPatchCommand
impl Sync for ApplyPolicyPatchCommand
impl Unpin for ApplyPolicyPatchCommand
impl UnsafeUnpin for ApplyPolicyPatchCommand
impl UnwindSafe for ApplyPolicyPatchCommand
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