#[non_exhaustive]pub struct ReportGenerator {
pub version: String,
pub commit: Option<String>,
pub dirty: Option<bool>,
}Expand description
The dataprof build that produced a report.
version alone cannot tell a development build from the release it
follows: both carry the workspace version until the next release bumps it.
The commit and the dirty flag tell them apart where the build knows them.
Absent commit and dirty mean the build did not record them: a crate
built from a package rather than a git checkout, or a build without a
usable git. An explicit null is malformed, so neither the reader nor the
schema accepts one.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.version: StringThe dataprof package version, such as "0.13.0".
commit: Option<String>The full git commit hash the build was compiled from.
dirty: Option<bool>Whether the compiled sources (Cargo.toml, Cargo.lock and crates/)
had uncommitted changes when the build ran.
Implementations§
Trait Implementations§
Source§impl Clone for ReportGenerator
impl Clone for ReportGenerator
Source§impl Debug for ReportGenerator
impl Debug for ReportGenerator
Source§impl<'de> Deserialize<'de> for ReportGenerator
impl<'de> Deserialize<'de> for ReportGenerator
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 ReportGenerator
Source§impl JsonSchema for ReportGenerator
impl JsonSchema for ReportGenerator
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 ReportGenerator
impl PartialEq for ReportGenerator
Source§impl Serialize for ReportGenerator
impl Serialize for ReportGenerator
impl StructuralPartialEq for ReportGenerator
Auto Trait Implementations§
impl Freeze for ReportGenerator
impl RefUnwindSafe for ReportGenerator
impl Send for ReportGenerator
impl Sync for ReportGenerator
impl Unpin for ReportGenerator
impl UnsafeUnpin for ReportGenerator
impl UnwindSafe for ReportGenerator
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
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
Compare self to
key and return true if they are equal.