#[non_exhaustive]pub enum DiffPatchFormat {
GitPatch,
Other(String),
}unstable_protocol_v2 only.Expand description
Text patch format used by DiffPatch.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
GitPatch
One or more diff --git sections in Git’s --patch (-p) text format.
Unlike Git, which writes paths relative to the repository root, every
path MUST be absolute, including in rename from, rename to,
copy from, and copy to lines, and MUST NOT have a prefix such as
Git’s default a/ and b/. Otherwise paths follow Git: /dev/null
names the missing side of an added or deleted file in the --- and
+++ lines, and paths with unusual characters are quoted as Git quotes
them. Surrounding commit metadata and email envelopes MUST NOT be
included.
Other(String)
Custom or future patch format.
Values beginning with _ are reserved for implementation-specific
extensions. Unknown values that do not begin with _ are reserved for
future ACP variants.
Trait Implementations§
Source§impl Clone for DiffPatchFormat
impl Clone for DiffPatchFormat
Source§impl Debug for DiffPatchFormat
impl Debug for DiffPatchFormat
Source§impl<'de> Deserialize<'de> for DiffPatchFormat
impl<'de> Deserialize<'de> for DiffPatchFormat
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>,
impl Eq for DiffPatchFormat
Source§impl JsonSchema for DiffPatchFormat
Available on crate feature schemars only.
impl JsonSchema for DiffPatchFormat
schemars only.Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for DiffPatchFormat
impl PartialEq for DiffPatchFormat
Source§impl Serialize for DiffPatchFormat
impl Serialize for DiffPatchFormat
impl StructuralPartialEq for DiffPatchFormat
Auto Trait Implementations§
impl Freeze for DiffPatchFormat
impl RefUnwindSafe for DiffPatchFormat
impl Send for DiffPatchFormat
impl Sync for DiffPatchFormat
impl Unpin for DiffPatchFormat
impl UnsafeUnpin for DiffPatchFormat
impl UnwindSafe for DiffPatchFormat
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.