pub struct GovernedAccessRequestV1 {
pub principal: String,
pub audience: String,
pub purpose: GovernedAccessPurposeV1,
pub namespace: String,
pub caller: CallerPrincipalV1,
pub subject: SubjectPrincipalV1,
pub audiences: AudienceV1,
pub scope: NamespaceScopeV1,
pub delegation_or_elevation: Option<DelegationElevationLeaseV1>,
pub policy_version: String,
pub policy_digest: String,
}Fields§
§principal: StringCompatibility mirror of caller.0; governed evaluation rejects disagreement.
audience: StringCompatibility mirror of the first typed audience member; it is never used as a fallback.
purpose: GovernedAccessPurposeV1§namespace: StringCompatibility mirror of scope.namespace; governed evaluation rejects disagreement.
caller: CallerPrincipalV1§subject: SubjectPrincipalV1§audiences: AudienceV1§scope: NamespaceScopeV1§delegation_or_elevation: Option<DelegationElevationLeaseV1>§policy_version: String§policy_digest: StringImplementations§
Source§impl GovernedAccessRequestV1
impl GovernedAccessRequestV1
pub fn new( principal: impl Into<String>, audience: impl Into<String>, purpose: GovernedAccessPurposeV1, namespace: impl Into<String>, ) -> Self
pub fn for_principals( caller: CallerPrincipalV1, subject: SubjectPrincipalV1, audience: Vec<String>, purpose: GovernedAccessPurposeV1, scope: NamespaceScopeV1, ) -> Self
pub fn with_delegation_or_elevation( self, lease: DelegationElevationLeaseV1, ) -> Self
pub fn with_purpose(self, purpose: GovernedAccessPurposeV1) -> Self
pub fn with_audiences(self, audience: Vec<String>) -> Self
pub fn with_lease_revoked(self) -> Self
Trait Implementations§
Source§impl Clone for GovernedAccessRequestV1
impl Clone for GovernedAccessRequestV1
Source§fn clone(&self) -> GovernedAccessRequestV1
fn clone(&self) -> GovernedAccessRequestV1
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 GovernedAccessRequestV1
impl Debug for GovernedAccessRequestV1
Source§impl<'de> Deserialize<'de> for GovernedAccessRequestV1
impl<'de> Deserialize<'de> for GovernedAccessRequestV1
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
impl Eq for GovernedAccessRequestV1
Source§impl PartialEq for GovernedAccessRequestV1
impl PartialEq for GovernedAccessRequestV1
Source§impl Serialize for GovernedAccessRequestV1
impl Serialize for GovernedAccessRequestV1
impl StructuralPartialEq for GovernedAccessRequestV1
Auto Trait Implementations§
impl Freeze for GovernedAccessRequestV1
impl RefUnwindSafe for GovernedAccessRequestV1
impl Send for GovernedAccessRequestV1
impl Sync for GovernedAccessRequestV1
impl Unpin for GovernedAccessRequestV1
impl UnsafeUnpin for GovernedAccessRequestV1
impl UnwindSafe for GovernedAccessRequestV1
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.