pub struct IdentityClient<T: Send + Sync> { /* private fields */ }Expand description
Transport-neutral client for the public gestaltd App surface.
Implementations§
Source§impl<T: Send + Sync> IdentityClient<T>
impl<T: Send + Sync> IdentityClient<T>
Source§impl<T: UnaryTransport> IdentityClient<T>
impl<T: UnaryTransport> IdentityClient<T>
pub async fn token( &self, request: TokenRequest, ) -> Result<TokenResponse, GestaltError>
pub async fn introspect( &self, request: IntrospectRequest, ) -> Result<IntrospectResponse, GestaltError>
pub async fn user_info( &self, request: UserInfoRequest, ) -> Result<UserInfoResponse, GestaltError>
pub async fn list_grants( &self, request: ListGrantsRequest, ) -> Result<ListGrantsResponse, GestaltError>
pub async fn get_grant( &self, request: GetGrantRequest, ) -> Result<GetGrantResponse, GestaltError>
pub async fn revoke_grant( &self, request: RevokeGrantRequest, ) -> Result<RevokeGrantResponse, GestaltError>
Source§impl<T: SyncUnaryTransport> IdentityClient<T>
impl<T: SyncUnaryTransport> IdentityClient<T>
pub fn token_sync( &self, request: TokenRequest, ) -> Result<TokenResponse, GestaltError>
pub fn introspect_sync( &self, request: IntrospectRequest, ) -> Result<IntrospectResponse, GestaltError>
pub fn user_info_sync( &self, request: UserInfoRequest, ) -> Result<UserInfoResponse, GestaltError>
pub fn list_grants_sync( &self, request: ListGrantsRequest, ) -> Result<ListGrantsResponse, GestaltError>
pub fn get_grant_sync( &self, request: GetGrantRequest, ) -> Result<GetGrantResponse, GestaltError>
pub fn revoke_grant_sync( &self, request: RevokeGrantRequest, ) -> Result<RevokeGrantResponse, GestaltError>
Auto Trait Implementations§
impl<T> Freeze for IdentityClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for IdentityClient<T>where
T: RefUnwindSafe,
impl<T> Send for IdentityClient<T>
impl<T> Sync for IdentityClient<T>
impl<T> Unpin for IdentityClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for IdentityClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for IdentityClient<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
Mutably borrows from an owned value. Read more
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<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> 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