pub struct RemoteClient { /* private fields */ }Implementations§
Source§impl RemoteClient
impl RemoteClient
pub async fn new( remote_url: String, allow_insecure: bool, ) -> Result<Self, DomainError>
pub async fn new_pinned( remote_url: String, expected_fingerprint: &str, allow_insecure: bool, ) -> Result<Self, DomainError>
pub fn fingerprint(&self) -> &str
pub fn server_key_id(&self) -> &str
pub async fn send_request( &self, plaintext: &RequestPlaintext, local_identity: &Identity, ) -> Result<Value, DomainError>
pub async fn get_token_from_claim_secret( &self, project_id: &str, member_id: &str, claim_secret: &str, identity: &Identity, ) -> Result<String, DomainError>
pub async fn send_member_join_request( &self, project_id: &str, token: &str, join_request: &MemberJoinRequest, identity: &Identity, ) -> Result<JoinResponse, ClientError>
pub async fn send_member_token_issue( &self, project_id: &str, token: &str, member_id: &str, identity: &Identity, ) -> Result<TokenIssueResponse, ClientError>
pub async fn send_list_tokens( &self, project_id: &str, token: &str, identity: &Identity, ) -> Result<Value, ClientError>
pub async fn send_revoke_tokens( &self, project_id: &str, token: &str, token_ids: &[String], identity: &Identity, ) -> Result<Value, ClientError>
pub async fn send_audit_query( &self, token: &str, project_id: Option<&str>, limit: i64, identity: &Identity, ) -> Result<Value, ClientError>
Auto Trait Implementations§
impl Freeze for RemoteClient
impl !RefUnwindSafe for RemoteClient
impl Send for RemoteClient
impl Sync for RemoteClient
impl Unpin for RemoteClient
impl UnsafeUnpin for RemoteClient
impl !UnwindSafe for RemoteClient
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