pub struct EffectivePolicyBundleV1 {
pub schema: String,
pub org_id: String,
pub instance_id: String,
pub version: u64,
pub issued_at: UtcTimestamp,
pub not_after: UtcTimestamp,
pub sources: Vec<PolicySourceV1>,
pub policy: BundlePolicyV1,
pub digest: String,
pub key_id: String,
pub signature: String,
}Expand description
effective_policy of GET /v1/policy/bundle (2.x).
Fields§
§schema: String§org_id: String§instance_id: String§version: u64§issued_at: UtcTimestamp§not_after: UtcTimestamp§sources: Vec<PolicySourceV1>§policy: BundlePolicyV1§digest: String§key_id: String§signature: StringImplementations§
Source§impl EffectivePolicyBundleV1
impl EffectivePolicyBundleV1
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Everything but the signature and the policy digest, which need the
raw bytes (signing_input_raw, policy_digest).
Sourcepub fn ack(&self) -> PolicyAckRequestV1
pub fn ack(&self) -> PolicyAckRequestV1
The ack for this bundle as applied. The wire carries at most
MAX_UNENFORCED members (the schema bound, more than the contract
defines); the full list stays in the engine’s own status.
Trait Implementations§
Source§impl Clone for EffectivePolicyBundleV1
impl Clone for EffectivePolicyBundleV1
Source§impl Debug for EffectivePolicyBundleV1
impl Debug for EffectivePolicyBundleV1
Source§impl<'de> Deserialize<'de> for EffectivePolicyBundleV1
impl<'de> Deserialize<'de> for EffectivePolicyBundleV1
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 PartialEq for EffectivePolicyBundleV1
impl PartialEq for EffectivePolicyBundleV1
Source§impl Serialize for EffectivePolicyBundleV1
impl Serialize for EffectivePolicyBundleV1
impl StructuralPartialEq for EffectivePolicyBundleV1
Auto Trait Implementations§
impl Forget for EffectivePolicyBundleV1
impl Freeze for EffectivePolicyBundleV1where
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<PolicySourceV1>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Vec<String>>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<VaultEffectivePolicyV1>: Freeze,
impl Move for EffectivePolicyBundleV1
impl RefUnwindSafe for EffectivePolicyBundleV1
impl Send for EffectivePolicyBundleV1
impl Sync for EffectivePolicyBundleV1
impl Unpin for EffectivePolicyBundleV1
impl UnsafeUnpin for EffectivePolicyBundleV1where
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<PolicySourceV1>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Vec<String>>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<VaultEffectivePolicyV1>: UnsafeUnpin,
impl UnwindSafe for EffectivePolicyBundleV1
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