pub struct AuthorizationReviewPolicy { /* private fields */ }Expand description
Strict, bounded policy for one exact-origin JSON resource.
Implementations§
Source§impl AuthorizationReviewPolicy
impl AuthorizationReviewPolicy
Sourcepub fn parse_toml(
authorized_origin: &Url,
source: &[u8],
) -> Result<Self, AuthorizationReviewPolicyError>
pub fn parse_toml( authorized_origin: &Url, source: &[u8], ) -> Result<Self, AuthorizationReviewPolicyError>
Parses a strict bounded TOML policy and resolves its resource under the existing exact-origin HTTP evidence authority contract.
Sourcepub const fn policy_id(&self) -> AuthorizationReviewPolicyId
pub const fn policy_id(&self) -> AuthorizationReviewPolicyId
Returns the stable semantic policy identity.
Sourcepub fn resource_scope_id(&self) -> AuthorizationResourceScopeId
pub fn resource_scope_id(&self) -> AuthorizationResourceScopeId
Returns the pseudonymous exact-resource scope identity.
Sourcepub const fn expectation(&self) -> AuthorizationReviewExpectation
pub const fn expectation(&self) -> AuthorizationReviewExpectation
Returns the sole executable V1 expectation.
Sourcepub const fn method(&self) -> AuthorizationReviewMethod
pub const fn method(&self) -> AuthorizationReviewMethod
Returns the sole executable V1 method.
Sourcepub const fn comparison(&self) -> &ApiComparisonProfile
pub const fn comparison(&self) -> &ApiComparisonProfile
Returns the checked raw-value-free projection profile.
Sourcepub fn selected_path_count(&self) -> usize
pub fn selected_path_count(&self) -> usize
Returns the selected-path count without exposing path material.
Sourcepub fn ignored_path_count(&self) -> usize
pub fn ignored_path_count(&self) -> usize
Returns the ignored-path count without exposing path material.
Sourcepub fn unordered_array_path_count(&self) -> usize
pub fn unordered_array_path_count(&self) -> usize
Returns the unordered-array-path count without exposing path material.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthorizationReviewPolicy
impl RefUnwindSafe for AuthorizationReviewPolicy
impl Send for AuthorizationReviewPolicy
impl Sync for AuthorizationReviewPolicy
impl Unpin for AuthorizationReviewPolicy
impl UnsafeUnpin for AuthorizationReviewPolicy
impl UnwindSafe for AuthorizationReviewPolicy
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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