Struct CredentialsClient
pub struct CredentialsClient<T> { /* private fields */ }Expand description
Provides methods for obtaining and verifying credentials that allow an authenticated user to authenticate in another service or context without revealing their identity.
Implementations§
§impl<T> CredentialsClient<T>
impl<T> CredentialsClient<T>
pub fn new(inner: T) -> CredentialsClient<T>
pub fn with_origin(inner: T, origin: Uri) -> CredentialsClient<T>
pub fn with_interceptor<F>( inner: T, interceptor: F, ) -> CredentialsClient<InterceptedService<T, F>>
pub fn send_compressed(
self,
encoding: CompressionEncoding,
) -> CredentialsClient<T>
pub fn send_compressed( self, encoding: CompressionEncoding, ) -> CredentialsClient<T>
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
pub fn accept_compressed(
self,
encoding: CompressionEncoding,
) -> CredentialsClient<T>
pub fn accept_compressed( self, encoding: CompressionEncoding, ) -> CredentialsClient<T>
Enable decompressing responses.
pub fn max_decoding_message_size(self, limit: usize) -> CredentialsClient<T>
pub fn max_decoding_message_size(self, limit: usize) -> CredentialsClient<T>
Limits the maximum size of a decoded message.
Default: 4MB
pub fn max_encoding_message_size(self, limit: usize) -> CredentialsClient<T>
pub fn max_encoding_message_size(self, limit: usize) -> CredentialsClient<T>
Limits the maximum size of an encoded message.
Default: usize::MAX
pub async fn get_external_service_credentials(
&mut self,
request: impl IntoRequest<GetExternalServiceCredentialsRequest>,
) -> Result<Response<GetExternalServiceCredentialsResponse>, Status>
pub async fn get_external_service_credentials( &mut self, request: impl IntoRequest<GetExternalServiceCredentialsRequest>, ) -> Result<Response<GetExternalServiceCredentialsResponse>, Status>
Generates and returns an external service credentials for the caller.
pub async fn get_delivery_certificate(
&mut self,
request: impl IntoRequest<GetDeliveryCertificateRequest>,
) -> Result<Response<GetDeliveryCertificateResponse>, Status>
pub async fn get_delivery_certificate( &mut self, request: impl IntoRequest<GetDeliveryCertificateRequest>, ) -> Result<Response<GetDeliveryCertificateResponse>, Status>
Generates a pair of delivery certificates that the holder can include to identify themselves to a message recipient (but not the server) in a sealed-sender message.
pub async fn get_group_credentials(
&mut self,
request: impl IntoRequest<GetGroupCredentialsRequest>,
) -> Result<Response<GetGroupCredentialsResponse>, Status>
pub async fn get_group_credentials( &mut self, request: impl IntoRequest<GetGroupCredentialsRequest>, ) -> Result<Response<GetGroupCredentialsResponse>, Status>
Generates a set of zero-knowledge credentials for various group-related actions.
pub async fn get_create_call_link_credential(
&mut self,
request: impl IntoRequest<GetCreateCallLinkCredentialRequest>,
) -> Result<Response<GetCreateCallLinkCredentialResponse>, Status>
pub async fn get_create_call_link_credential( &mut self, request: impl IntoRequest<GetCreateCallLinkCredentialRequest>, ) -> Result<Response<GetCreateCallLinkCredentialResponse>, Status>
Generates zero-knowledge credentials for creating call links.
Trait Implementations§
§impl<T> Clone for CredentialsClient<T>where
T: Clone,
impl<T> Clone for CredentialsClient<T>where
T: Clone,
§fn clone(&self) -> CredentialsClient<T>
fn clone(&self) -> CredentialsClient<T>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<T> !Freeze for CredentialsClient<T>
impl<T> RefUnwindSafe for CredentialsClient<T>where
T: RefUnwindSafe,
impl<T> Send for CredentialsClient<T>where
T: Send,
impl<T> Sync for CredentialsClient<T>where
T: Sync,
impl<T> Unpin for CredentialsClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for CredentialsClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for CredentialsClient<T>where
T: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].