pub struct Constitution {
pub name: String,
pub version: String,
pub description: String,
pub policies: Vec<String>,
}Expand description
Canonical definition of governing rules in effect for a graph.
Fields§
§name: StringUnique name of the constitution.
version: StringSemantic version or revision identifier.
description: StringHuman-readable description of the guardrails.
policies: Vec<String>Simple list of policies; future versions may embed richer data.
Trait Implementations§
Source§impl Clone for Constitution
impl Clone for Constitution
Source§fn clone(&self) -> Constitution
fn clone(&self) -> Constitution
Returns a duplicate of the value. Read more
1.0.0 · 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 Constitution
impl Debug for Constitution
Source§impl Default for Constitution
impl Default for Constitution
Source§fn default() -> Constitution
fn default() -> Constitution
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Constitution
impl<'de> Deserialize<'de> for Constitution
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
Auto Trait Implementations§
impl Freeze for Constitution
impl RefUnwindSafe for Constitution
impl Send for Constitution
impl Sync for Constitution
impl Unpin for Constitution
impl UnsafeUnpin for Constitution
impl UnwindSafe for Constitution
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