pub struct TappdClient { /* private fields */ }Expand description
The main client for interacting with the legacy Tappd service
Implementations§
Source§impl TappdClient
impl TappdClient
pub fn new(endpoint: Option<&str>) -> Self
Sourcepub async fn derive_key(&self, path: &str) -> Result<DeriveKeyResponse>
pub async fn derive_key(&self, path: &str) -> Result<DeriveKeyResponse>
Derives a key from the Tappd service using the path as both path and subject
Sourcepub async fn derive_key_with_subject(
&self,
path: &str,
subject: &str,
) -> Result<DeriveKeyResponse>
pub async fn derive_key_with_subject( &self, path: &str, subject: &str, ) -> Result<DeriveKeyResponse>
Derives a key from the Tappd service with a specific subject
Sourcepub async fn derive_key_with_subject_and_alt_names(
&self,
path: &str,
subject: Option<&str>,
alt_names: Option<Vec<String>>,
) -> Result<DeriveKeyResponse>
pub async fn derive_key_with_subject_and_alt_names( &self, path: &str, subject: Option<&str>, alt_names: Option<Vec<String>>, ) -> Result<DeriveKeyResponse>
Derives a key from the Tappd service with full configuration
Sourcepub async fn get_quote(&self, report_data: Vec<u8>) -> Result<TdxQuoteResponse>
pub async fn get_quote(&self, report_data: Vec<u8>) -> Result<TdxQuoteResponse>
Sends a raw quote request with 64 bytes of report data
Sourcepub async fn info(&self) -> Result<TappdInfoResponse>
pub async fn info(&self) -> Result<TappdInfoResponse>
Retrieves information about the Tappd instance
Trait Implementations§
impl BaseClient for TappdClient
Auto Trait Implementations§
impl Freeze for TappdClient
impl RefUnwindSafe for TappdClient
impl Send for TappdClient
impl Sync for TappdClient
impl Unpin for TappdClient
impl UnwindSafe for TappdClient
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> 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>
Converts
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>
Converts
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