pub struct ProofRef {
pub capability: String,
pub title: String,
pub address: String,
}Expand description
Where a fuller answer about this entity’s enforcement lives.
A pointer, never an answer. This module states what it can see in the tree and then names the capability that can say more, so that an entity page does not grow a second, weaker implementation of proof beside the one that already exists.
use majordomus_cli::capability::builtin::entity::ProofRef;
let p = ProofRef {
capability: "rule.proves".into(),
title: "What proves a rule".into(),
address: "majordomus rule proves project.entities-are-routable@1".into(),
};
assert_eq!(
serde_json::to_value(&p).unwrap()["capability"],
serde_json::json!("rule.proves")
);Fields§
§capability: StringThe capability that answers it.
title: StringIts title.
address: StringHow to ask it here.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ProofRef
impl<'de> Deserialize<'de> for ProofRef
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 ProofRef
Source§impl JsonSchema for ProofRef
impl JsonSchema for ProofRef
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 moreimpl StructuralPartialEq for ProofRef
Auto Trait Implementations§
impl Freeze for ProofRef
impl RefUnwindSafe for ProofRef
impl Send for ProofRef
impl Sync for ProofRef
impl Unpin for ProofRef
impl UnsafeUnpin for ProofRef
impl UnwindSafe for ProofRef
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.