pub enum Change {
Revoked,
Superseded {
by: Token,
},
ExpirySet {
expires_at: Option<Timestamp>,
},
CampaignSet {
campaign: Option<String>,
},
LabelSet {
key: String,
value: String,
},
LabelUnset {
key: String,
},
}Expand description
A change to a manifest’s mutable sections. Lifecycle changes are CAS (C-9, checked at the store’s commit point); cosmetic changes are LWW by commit order.
Variants§
Revoked
Lifecycle: withdraw the token (tombstone, cascades to children).
Superseded
Lifecycle: replace with a corrected token.
ExpirySet
Lifecycle: set or clear expiry.
CampaignSet
Cosmetic: set or clear the campaign label.
LabelSet
Cosmetic: set one label.
LabelUnset
Cosmetic: remove one label.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Change
impl<'de> Deserialize<'de> for Change
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 Change
impl StructuralPartialEq for Change
Auto Trait Implementations§
impl Freeze for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnsafeUnpin for Change
impl UnwindSafe for Change
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