pub struct ArtifactView {
pub path: String,
pub document: String,
pub format: ArtifactFormat,
pub schema: Option<String>,
pub source: String,
pub bytes: Option<u64>,
pub sha256: Option<String>,
pub state: ArtifactState,
}Expand description
One generated file, as the manifest declares it and as the tree has it.
Fields§
§path: StringRepository-relative path.
document: StringThe document it projects.
format: ArtifactFormatThe encoding.
schema: Option<String>The JSON Schema its content satisfies, when it declares one.
source: StringOne line: what it was derived from.
bytes: Option<u64>The size the manifest recorded.
sha256: Option<String>The hash the manifest recorded.
state: ArtifactStateWhere the file stands against it.
Trait Implementations§
Source§impl Clone for ArtifactView
impl Clone for ArtifactView
Source§fn clone(&self) -> ArtifactView
fn clone(&self) -> ArtifactView
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 ArtifactView
impl Debug for ArtifactView
Source§impl<'de> Deserialize<'de> for ArtifactView
impl<'de> Deserialize<'de> for ArtifactView
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 ArtifactView
impl JsonSchema for ArtifactView
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 moreAuto Trait Implementations§
impl Freeze for ArtifactView
impl RefUnwindSafe for ArtifactView
impl Send for ArtifactView
impl Sync for ArtifactView
impl Unpin for ArtifactView
impl UnsafeUnpin for ArtifactView
impl UnwindSafe for ArtifactView
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