pub struct ContractView {Show 13 fields
pub id: String,
pub path: String,
pub title: Option<String>,
pub description: Option<String>,
pub status: String,
pub scope: String,
pub composition: String,
pub order: i64,
pub providers: Vec<String>,
pub audience: Vec<String>,
pub tracks: Vec<String>,
pub children_require_contract: Option<bool>,
pub children_exempt: Vec<String>,
}Expand description
A directory contract as the document declares it, before anything is inherited.
Fields§
§id: StringThe document’s identity; it survives a move, the file name does not.
path: StringThe document’s path, repository-relative.
title: Option<String>One line naming the directory.
description: Option<String>One line saying what the directory is for.
status: Stringactive or deprecated; a deprecated document is listed and never applied.
scope: Stringdirectory, subtree or explicit: how far the document reaches.
composition: Stringextend, replace or final: how it composes with what is above it.
order: i64Ties within one depth are broken by this, then by path.
providers: Vec<String>*, or the providers the document is written for.
audience: Vec<String>Who it addresses; both when it says nothing.
tracks: Vec<String>Pathspecs whose change names this document for review.
children_require_contract: Option<bool>Whether the directories below owe a contract, when this document says.
children_exempt: Vec<String>Subtrees below this one that owe nothing: carried, not authored here.
Trait Implementations§
Source§impl Clone for ContractView
impl Clone for ContractView
Source§fn clone(&self) -> ContractView
fn clone(&self) -> ContractView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ContractView
impl Debug for ContractView
Source§impl<'de> Deserialize<'de> for ContractView
impl<'de> Deserialize<'de> for ContractView
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>,
Source§impl JsonSchema for ContractView
impl JsonSchema for ContractView
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 more