pub struct DirectoryNode {
pub path: String,
pub depth: usize,
pub parent: Option<String>,
pub children: Vec<String>,
pub state: DirectoryState,
pub requires_contract: bool,
pub governed_by: Option<String>,
pub exempted_by: Option<String>,
pub objects: usize,
pub contract: Option<ContractView>,
pub effective: Vec<EffectiveEntry>,
}Expand description
One directory of the layer, what it owes, and what applies to it.
Fields§
§path: StringRepository-relative, forward slashes.
depth: usizeSegments below the layer root; the root itself is 0.
parent: Option<String>The directory above, when it is inside the layer.
children: Vec<String>The directories immediately below, sorted.
state: DirectoryStateWhether it carries the contract it owes.
requires_contract: boolWhether a contract is owed here at all.
governed_by: Option<String>The contract that made the requirement explicit, when one did.
exempted_by: Option<String>The contract that released this subtree, when one did.
objects: usizeHow many objects of any kind the index holds directly in this directory.
contract: Option<ContractView>The contract this directory declares, before inheritance.
effective: Vec<EffectiveEntry>The contracts that apply here once inheritance is resolved, least specific first. Present when the request asked for it, or when it asked about one path.
Trait Implementations§
Source§impl Clone for DirectoryNode
impl Clone for DirectoryNode
Source§fn clone(&self) -> DirectoryNode
fn clone(&self) -> DirectoryNode
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 DirectoryNode
impl Debug for DirectoryNode
Source§impl<'de> Deserialize<'de> for DirectoryNode
impl<'de> Deserialize<'de> for DirectoryNode
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 DirectoryNode
impl JsonSchema for DirectoryNode
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 DirectoryNode
impl RefUnwindSafe for DirectoryNode
impl Send for DirectoryNode
impl Sync for DirectoryNode
impl Unpin for DirectoryNode
impl UnsafeUnpin for DirectoryNode
impl UnwindSafe for DirectoryNode
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