pub struct ContractWarning {
pub kind: Kind,
pub asset_path: String,
pub column: Option<String>,
pub expected_type: Option<String>,
pub found_type: Option<String>,
pub schema_version: Option<i64>,
pub captured_at: Option<String>,
pub message: String,
}Expand description
ContractWarning : One save-time schema-contract warning: a consumer reference that does not match the referenced asset’s latest captured schema. schema_version/captured_at identify the capture the check ran against (as-of the producer’s last run, not its latest save).
Fields§
§kind: Kind§asset_path: String§column: Option<String>§expected_type: Option<String>§found_type: Option<String>§schema_version: Option<i64>§captured_at: Option<String>§message: StringImplementations§
Source§impl ContractWarning
impl ContractWarning
Sourcepub fn new(kind: Kind, asset_path: String, message: String) -> ContractWarning
pub fn new(kind: Kind, asset_path: String, message: String) -> ContractWarning
One save-time schema-contract warning: a consumer reference that does not match the referenced asset’s latest captured schema. schema_version/captured_at identify the capture the check ran against (as-of the producer’s last run, not its latest save).
Trait Implementations§
Source§impl Clone for ContractWarning
impl Clone for ContractWarning
Source§fn clone(&self) -> ContractWarning
fn clone(&self) -> ContractWarning
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContractWarning
impl Debug for ContractWarning
Source§impl Default for ContractWarning
impl Default for ContractWarning
Source§fn default() -> ContractWarning
fn default() -> ContractWarning
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContractWarning
impl<'de> Deserialize<'de> for ContractWarning
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 PartialEq for ContractWarning
impl PartialEq for ContractWarning
Source§fn eq(&self, other: &ContractWarning) -> bool
fn eq(&self, other: &ContractWarning) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContractWarning
impl Serialize for ContractWarning
impl StructuralPartialEq for ContractWarning
Auto Trait Implementations§
impl Freeze for ContractWarning
impl RefUnwindSafe for ContractWarning
impl Send for ContractWarning
impl Sync for ContractWarning
impl Unpin for ContractWarning
impl UnsafeUnpin for ContractWarning
impl UnwindSafe for ContractWarning
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