pub struct GovernanceRef {
pub org_id: String,
pub constitution_hash: String,
}Expand description
Governance identification for Commander integration.
Current code: serde-only seam, never read at runtime.
Commander reads org_id + constitution_hash to load the applicable
constitution and derive policy. Never stores policy here — policy belongs
in the constitution, not the manifest.
Fields§
§org_id: String§constitution_hash: StringTrait Implementations§
Source§impl Clone for GovernanceRef
impl Clone for GovernanceRef
Source§fn clone(&self) -> GovernanceRef
fn clone(&self) -> GovernanceRef
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 GovernanceRef
impl Debug for GovernanceRef
Source§impl Default for GovernanceRef
impl Default for GovernanceRef
Source§fn default() -> GovernanceRef
fn default() -> GovernanceRef
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GovernanceRefwhere
GovernanceRef: Default,
impl<'de> Deserialize<'de> for GovernanceRefwhere
GovernanceRef: Default,
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 GovernanceRef
impl JsonSchema for GovernanceRef
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 moreSource§impl PartialEq for GovernanceRef
impl PartialEq for GovernanceRef
Source§fn eq(&self, other: &GovernanceRef) -> bool
fn eq(&self, other: &GovernanceRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GovernanceRef
impl Serialize for GovernanceRef
impl StructuralPartialEq for GovernanceRef
Auto Trait Implementations§
impl Freeze for GovernanceRef
impl RefUnwindSafe for GovernanceRef
impl Send for GovernanceRef
impl Sync for GovernanceRef
impl Unpin for GovernanceRef
impl UnsafeUnpin for GovernanceRef
impl UnwindSafe for GovernanceRef
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