pub struct AccessControlRequestBuilder<'c> { /* private fields */ }
Expand description
A builder for making an access control request.
Implementations§
Source§impl<'c> AccessControlRequestBuilder<'c>
impl<'c> AccessControlRequestBuilder<'c>
Sourcepub fn resource_attribute(
self,
property_label: &str,
attribute_label: &str,
) -> Result<Self, Error>
pub fn resource_attribute( self, property_label: &str, attribute_label: &str, ) -> Result<Self, Error>
Define a labelled resource attribute to be included in the access control request.
The property and attribute labels should be available to this service through authly document manifests.
§Examples
// note: Client is not properly built here.
let client = Client::builder().connect().await?;
client.access_control_request()
.resource_attribute("type", "orders")?
.resource_attribute("action", "read")?
.send()
.await?;
Sourcepub fn access_token(self, token: Arc<AccessToken>) -> Self
pub fn access_token(self, token: Arc<AccessToken>) -> Self
Include an access token in the request.
The access token is used as subject properties in the access control request.
Sourcepub fn peer_entity_id(self, entity_id: Eid) -> Self
pub fn peer_entity_id(self, entity_id: Eid) -> Self
Add a peer entity ID, which represents a client acting as a subject in the access control request.
Auto Trait Implementations§
impl<'c> Freeze for AccessControlRequestBuilder<'c>
impl<'c> !RefUnwindSafe for AccessControlRequestBuilder<'c>
impl<'c> Send for AccessControlRequestBuilder<'c>
impl<'c> Sync for AccessControlRequestBuilder<'c>
impl<'c> Unpin for AccessControlRequestBuilder<'c>
impl<'c> !UnwindSafe for AccessControlRequestBuilder<'c>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request