#[non_exhaustive]pub struct SourceIdentity {
pub version: Option<String>,
}Expand description
Which data a report describes, as far as the caller or the read can say.
DataSource says where the data was read from; a path or a stream name
is a location, and the data behind it can change. This records an identity
of the data itself, so a pipeline can check that what it promotes is what
was profiled. Each member names its kind; a later release may add others,
such as a digest of the bytes read, and a reader ignores members it does
not know.
It is provenance, not a metric: two input paths over the same logical data carry different identities, so it stays outside the serialized-value parity comparison.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.version: Option<String>A version of the source supplied by the caller and recorded verbatim: a table snapshot ID, a commit version, a load or batch ID. dataprof neither interprets nor verifies it.
Implementations§
Source§impl SourceIdentity
impl SourceIdentity
Sourcepub fn with_version(version: impl Into<String>) -> Self
pub fn with_version(version: impl Into<String>) -> Self
An identity holding a caller-supplied version.
Trait Implementations§
Source§impl Clone for SourceIdentity
impl Clone for SourceIdentity
Source§impl Debug for SourceIdentity
impl Debug for SourceIdentity
Source§impl Default for SourceIdentity
impl Default for SourceIdentity
Source§impl<'de> Deserialize<'de> for SourceIdentity
impl<'de> Deserialize<'de> for SourceIdentity
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 SourceIdentity
Source§impl JsonSchema for SourceIdentity
impl JsonSchema for SourceIdentity
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 SourceIdentity
impl PartialEq for SourceIdentity
Source§impl Serialize for SourceIdentity
impl Serialize for SourceIdentity
impl StructuralPartialEq for SourceIdentity
Auto Trait Implementations§
impl Forget for SourceIdentity
impl Freeze for SourceIdentity
impl Move for SourceIdentity
impl RefUnwindSafe for SourceIdentity
impl Send for SourceIdentity
impl Sync for SourceIdentity
impl Unpin for SourceIdentity
impl UnsafeUnpin for SourceIdentity
impl UnwindSafe for SourceIdentity
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.