pub enum Baseline {
Checksum(String),
Doc(Value),
}Expand description
A sync baseline. Newer rigg versions store the compare-normalized document so the checksum can be recomputed under CURRENT normalization rules — surviving rule evolution across rigg upgrades. Legacy entries hold only the frozen checksum and behave as before until the resource next syncs (every successful pull/push/adopt rewrites its baseline).
Variants§
Checksum(String)
Legacy: frozen checksum (string MUST be tried first — Value
deserializes any JSON, including strings).
Doc(Value)
Compare-normalized canonical document.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Baseline
impl<'de> Deserialize<'de> for Baseline
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
Auto Trait Implementations§
impl Freeze for Baseline
impl RefUnwindSafe for Baseline
impl Send for Baseline
impl Sync for Baseline
impl Unpin for Baseline
impl UnsafeUnpin for Baseline
impl UnwindSafe for Baseline
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