pub struct DecisionPolicyIdentity {
pub kind: DecisionPolicyKind,
pub id: String,
pub version: String,
pub semantic_hash: Option<String>,
}Fields§
§kind: DecisionPolicyKind§id: String§version: String§semantic_hash: Option<String>Canonical lower-case BLAKE3 digest of the policy’s semantic
configuration, for SDK adapters whose configuration is part of their
identity (for example crate::GuardedUtilityPolicy). A controller
binding then rejects a policy whose configuration drifted without a
version change. None keeps the historical identity shape.
Implementations§
Source§impl DecisionPolicyIdentity
impl DecisionPolicyIdentity
pub fn new( kind: DecisionPolicyKind, id: impl Into<String>, version: impl Into<String>, ) -> DecisionPolicyIdentity
Trait Implementations§
Source§impl Clone for DecisionPolicyIdentity
impl Clone for DecisionPolicyIdentity
Source§fn clone(&self) -> DecisionPolicyIdentity
fn clone(&self) -> DecisionPolicyIdentity
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 DecisionPolicyIdentity
impl Debug for DecisionPolicyIdentity
Source§impl<'de> Deserialize<'de> for DecisionPolicyIdentity
impl<'de> Deserialize<'de> for DecisionPolicyIdentity
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DecisionPolicyIdentity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DecisionPolicyIdentity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DecisionPolicyIdentity
Source§impl Ord for DecisionPolicyIdentity
impl Ord for DecisionPolicyIdentity
Source§fn cmp(&self, other: &DecisionPolicyIdentity) -> Ordering
fn cmp(&self, other: &DecisionPolicyIdentity) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DecisionPolicyIdentity
impl PartialEq for DecisionPolicyIdentity
Source§impl PartialOrd for DecisionPolicyIdentity
impl PartialOrd for DecisionPolicyIdentity
Source§impl Serialize for DecisionPolicyIdentity
impl Serialize for DecisionPolicyIdentity
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DecisionPolicyIdentity
Auto Trait Implementations§
impl Freeze for DecisionPolicyIdentity
impl RefUnwindSafe for DecisionPolicyIdentity
impl Send for DecisionPolicyIdentity
impl Sync for DecisionPolicyIdentity
impl Unpin for DecisionPolicyIdentity
impl UnsafeUnpin for DecisionPolicyIdentity
impl UnwindSafe for DecisionPolicyIdentity
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