pub struct GnapTransactionRequestBuilder { /* private fields */ }Expand description
Builder for GnapTransactionRequest.
Implementations§
Source§impl GnapTransactionRequestBuilder
impl GnapTransactionRequestBuilder
Sourcepub fn client(self, client: GnapClientInfo) -> Self
pub fn client(self, client: GnapClientInfo) -> Self
Set the client info with a key binding.
Sourcepub fn client_key(self, jwk: GnapJwk, proof: impl Into<String>) -> Self
pub fn client_key(self, jwk: GnapJwk, proof: impl Into<String>) -> Self
Set client info from a key and proof method.
Sourcepub fn redirect_interaction(
self,
callback_uri: impl Into<String>,
nonce: impl Into<String>,
) -> Self
pub fn redirect_interaction( self, callback_uri: impl Into<String>, nonce: impl Into<String>, ) -> Self
Set interaction requirements for redirect flow.
Sourcepub fn interact(self, interact: GnapInteractionRequirements) -> Self
pub fn interact(self, interact: GnapInteractionRequirements) -> Self
Set interaction requirements (raw).
Sourcepub fn access(
self,
access_type: impl Into<String>,
actions: &[impl AsRef<str>],
locations: &[impl AsRef<str>],
) -> Self
pub fn access( self, access_type: impl Into<String>, actions: &[impl AsRef<str>], locations: &[impl AsRef<str>], ) -> Self
Add an access request with type, actions, and locations.
Sourcepub fn access_type(self, access_type: impl Into<String>) -> Self
pub fn access_type(self, access_type: impl Into<String>) -> Self
Add a simple access request (type only, no actions/locations).
Sourcepub fn subject_formats(self, formats: Vec<String>) -> Self
pub fn subject_formats(self, formats: Vec<String>) -> Self
Request subject information with the given identifier formats.
Sourcepub fn subject(self, subject: GnapSubjectRequest) -> Self
pub fn subject(self, subject: GnapSubjectRequest) -> Self
Request subject information (raw).
Sourcepub fn build(self) -> GnapTransactionRequest
pub fn build(self) -> GnapTransactionRequest
Build the GnapTransactionRequest.
Auto Trait Implementations§
impl Freeze for GnapTransactionRequestBuilder
impl RefUnwindSafe for GnapTransactionRequestBuilder
impl Send for GnapTransactionRequestBuilder
impl Sync for GnapTransactionRequestBuilder
impl Unpin for GnapTransactionRequestBuilder
impl UnsafeUnpin for GnapTransactionRequestBuilder
impl UnwindSafe for GnapTransactionRequestBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
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