Struct teaclave_client_sdk::AuthenticationClient
source · [−]pub struct AuthenticationClient { /* private fields */ }
Implementations
sourceimpl AuthenticationClient
impl AuthenticationClient
pub fn new(channel: Channel, rt: Runtime) -> Self
pub fn set_credential(&mut self, id: &str, token: &str)
pub fn user_register_with_request(
&mut self,
request: UserRegisterRequest
) -> Result<()>
pub fn user_register_serialized(
&mut self,
serialized_request: &str
) -> Result<String>
pub fn user_register(
&mut self,
user_id: &str,
user_password: &str,
role: &str,
attribute: &str
) -> Result<()>
pub fn user_login_with_request(
&mut self,
request: UserLoginRequest
) -> Result<UserLoginResponse>
pub fn user_login_serialized(
&mut self,
serialized_request: &str
) -> Result<String>
pub fn user_login(&mut self, user_id: &str, user_password: &str) -> Result<String>
Auto Trait Implementations
impl !RefUnwindSafe for AuthenticationClient
impl Send for AuthenticationClient
impl Sync for AuthenticationClient
impl Unpin for AuthenticationClient
impl !UnwindSafe for AuthenticationClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request