pub struct ApiAuthorizationContextPairStrategy { /* private fields */ }Expand description
Second built-in PayloadStrategy: an anonymous/authorized context pair.
Implementations§
Source§impl ApiAuthorizationContextPairStrategy
impl ApiAuthorizationContextPairStrategy
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates the strategy bound to its stable reference and revision.
The reference identity is a compile-time constant, so construction only
fails if the shared PayloadStrategyRef validation contract changes;
that is treated as an unrecoverable programmer error.
Trait Implementations§
Source§impl Clone for ApiAuthorizationContextPairStrategy
impl Clone for ApiAuthorizationContextPairStrategy
Source§fn clone(&self) -> ApiAuthorizationContextPairStrategy
fn clone(&self) -> ApiAuthorizationContextPairStrategy
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 PayloadStrategy for ApiAuthorizationContextPairStrategy
impl PayloadStrategy for ApiAuthorizationContextPairStrategy
Source§fn strategy_ref(&self) -> &PayloadStrategyRef
fn strategy_ref(&self) -> &PayloadStrategyRef
Returns the stable strategy identity and implementation revision.
Source§fn derive_one(
&self,
role: PayloadVariantRole,
seed: &PayloadSeed,
limits: PayloadStrategyLimits,
) -> Result<PayloadArtifact, PayloadStrategyError>
fn derive_one( &self, role: PayloadVariantRole, seed: &PayloadSeed, limits: PayloadStrategyLimits, ) -> Result<PayloadArtifact, PayloadStrategyError>
Derives exactly one bounded artifact for this execution turn.
Auto Trait Implementations§
impl Freeze for ApiAuthorizationContextPairStrategy
impl RefUnwindSafe for ApiAuthorizationContextPairStrategy
impl Send for ApiAuthorizationContextPairStrategy
impl Sync for ApiAuthorizationContextPairStrategy
impl Unpin for ApiAuthorizationContextPairStrategy
impl UnsafeUnpin for ApiAuthorizationContextPairStrategy
impl UnwindSafe for ApiAuthorizationContextPairStrategy
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