pub struct OpsDoc {
pub schema_version: String,
pub file: String,
pub base: Option<BaseRef>,
pub exact: bool,
pub ops: Vec<PatchOp>,
}Expand description
deny_unknown_fields here and on the two types below is not strictness for
its own sake: schema/weave-ops.schema.json says additionalProperties: false at all three levels, and until now this decoder accepted documents
its own published schema rejects. A misspelled entitiy used to be
discarded in silence.
Fields§
§schema_version: String§file: StringThe path the ops were extracted from. Its extension selects the parser;
apply may target a different path entirely.
base: Option<BaseRef>§exact: boolTrue when applying these ops to the declared base reproduces the changed file byte-for-byte at entity granularity. False means a whole-file fallback op is present and granularity was lost.
ops: Vec<PatchOp>Trait Implementations§
Source§impl<'de> Deserialize<'de> for OpsDoc
impl<'de> Deserialize<'de> for OpsDoc
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 StructuralPartialEq for OpsDoc
Auto Trait Implementations§
impl Freeze for OpsDoc
impl RefUnwindSafe for OpsDoc
impl Send for OpsDoc
impl Sync for OpsDoc
impl Unpin for OpsDoc
impl UnsafeUnpin for OpsDoc
impl UnwindSafe for OpsDoc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more