pub enum ProblemKind {
Missing {
nearest: Option<Window>,
},
Ambiguous {
lines: Vec<usize>,
},
Stale {
expected: String,
actual: Option<String>,
},
Exists,
NotFound,
BadRange,
Invalid {
message: String,
},
}Expand description
Why an operation could not be planned.
Variants§
Missing
The anchor matched nothing; nearest is the closest real text.
Ambiguous
The anchor matched more than once.
Stale
The file no longer has the fingerprint the caller expected.
Fields
Exists
A create or move target already exists.
NotFound
The file does not exist.
BadRange
A byte range does not fit the text or overlaps an earlier edit.
Invalid
The operation is malformed.
Trait Implementations§
Source§impl Clone for ProblemKind
impl Clone for ProblemKind
Source§impl Debug for ProblemKind
impl Debug for ProblemKind
Source§impl<'de> Deserialize<'de> for ProblemKind
impl<'de> Deserialize<'de> for ProblemKind
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 ProblemKind
Source§impl JsonSchema for ProblemKind
impl JsonSchema for ProblemKind
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ProblemKind
impl PartialEq for ProblemKind
Source§impl Serialize for ProblemKind
impl Serialize for ProblemKind
impl StructuralPartialEq for ProblemKind
Auto Trait Implementations§
impl Freeze for ProblemKind
impl RefUnwindSafe for ProblemKind
impl Send for ProblemKind
impl Sync for ProblemKind
impl Unpin for ProblemKind
impl UnsafeUnpin for ProblemKind
impl UnwindSafe for ProblemKind
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