pub struct ValidatedBundle { /* private fields */ }Expand description
A decoded bundle whose signatures, hashes, Cedar, schema, and labels are valid.
Implementations§
Source§impl ValidatedBundle
impl ValidatedBundle
pub fn format_version(&self) -> u32
pub fn bundle_id(&self) -> &str
pub fn name(&self) -> &str
pub fn module_count(&self) -> usize
pub fn policies(&self) -> &str
pub fn schema_json(&self) -> Option<&Value>
pub fn schema_json_string(&self) -> Result<Option<String>>
pub fn labels(&self) -> &LabelSet
pub fn labels_json(&self) -> Result<String>
pub fn policy_ids(&self) -> &[String]
pub fn diagnostics(&self) -> &[Diagnostic]
pub fn archive_sha256(&self) -> &str
pub fn compressed_size(&self) -> usize
pub fn verified_signature(&self) -> &VerifiedSignature
Sourcepub fn prepare_engine(&self) -> Result<PreparedEngine>
pub fn prepare_engine(&self) -> Result<PreparedEngine>
Build a complete engine without modifying any application state.
Sourcepub fn prepare_engine_with_policy_stores(&self) -> Result<PreparedEngine>
pub fn prepare_engine_with_policy_stores(&self) -> Result<PreparedEngine>
Build a namespace-partitioned engine from the bundle’s module boundaries.
Each ordinary module becomes one policy store identified by its module name and rooted at its declared namespace. Policies from modules with the global role are installed in every store. Preparation fails if the module boundaries are not valid independent stores, including when an ordinary policy references another ordinary module’s namespace.
Self::prepare_engine prepares a monolithic policy engine.
Auto Trait Implementations§
impl !RefUnwindSafe for ValidatedBundle
impl !UnwindSafe for ValidatedBundle
impl Freeze for ValidatedBundle
impl Send for ValidatedBundle
impl Sync for ValidatedBundle
impl Unpin for ValidatedBundle
impl UnsafeUnpin for ValidatedBundle
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more