pub struct ExpressionWarning {
pub field_ref: String,
pub warning: String,
}
Expand description
ExpressionWarning is a warning information that targets a specific expression.
Fields§
§field_ref: String
The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is “spec.validations[0].expression”
warning: String
The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.
Trait Implementations§
Source§impl Clone for ExpressionWarning
impl Clone for ExpressionWarning
Source§fn clone(&self) -> ExpressionWarning
fn clone(&self) -> ExpressionWarning
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ExpressionWarning
impl Debug for ExpressionWarning
Source§impl DeepMerge for ExpressionWarning
impl DeepMerge for ExpressionWarning
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for ExpressionWarning
impl Default for ExpressionWarning
Source§fn default() -> ExpressionWarning
fn default() -> ExpressionWarning
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExpressionWarning
impl<'de> Deserialize<'de> for ExpressionWarning
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
Source§impl JsonSchema for ExpressionWarning
impl JsonSchema for ExpressionWarning
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for ExpressionWarning
impl PartialEq for ExpressionWarning
Source§impl Serialize for ExpressionWarning
impl Serialize for ExpressionWarning
impl StructuralPartialEq for ExpressionWarning
Auto Trait Implementations§
impl Freeze for ExpressionWarning
impl RefUnwindSafe for ExpressionWarning
impl Send for ExpressionWarning
impl Sync for ExpressionWarning
impl Unpin for ExpressionWarning
impl UnwindSafe for ExpressionWarning
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