pub struct SaasClient { /* private fields */ }Implementations§
Source§impl SaasClient
impl SaasClient
pub fn new(issuer_url: impl Into<String>) -> Self
pub async fn list_accounts(&self, token: &str) -> Result<Value, AuthError>
Sourcepub async fn list_resources(
&self,
token: &str,
account_id: &str,
after: Option<&str>,
) -> Result<Vec<ResourceRegistration>, AuthError>
pub async fn list_resources( &self, token: &str, account_id: &str, after: Option<&str>, ) -> Result<Vec<ResourceRegistration>, AuthError>
One page of at most 100 rows. Continue with the last raw registration UUID.
Sourcepub async fn propose_resource(
&self,
token: &str,
account_id: &str,
proposal: &ResourceProposal,
) -> Result<ResourceRegistration, AuthError>
pub async fn propose_resource( &self, token: &str, account_id: &str, proposal: &ResourceProposal, ) -> Result<ResourceRegistration, AuthError>
Customer proposal only; approval is reserved for the operator control plane.
pub async fn create_account( &self, token: &str, name: &str, slug: &str, ) -> Result<Value, AuthError>
pub async fn list_applications( &self, token: &str, account_id: &str, ) -> Result<Value, AuthError>
pub async fn get_wallet( &self, token: &str, account_id: &str, ) -> Result<Value, AuthError>
pub async fn create_checkout( &self, token: &str, account_id: &str, price_id: &str, idempotency_key: &str, ) -> Result<Value, AuthError>
Sourcepub async fn create_checkout_with_proof(
&self,
token: &str,
account_id: &str,
price_id: &str,
idempotency_key: &str,
proof_id: &str,
) -> Result<Value, AuthError>
pub async fn create_checkout_with_proof( &self, token: &str, account_id: &str, price_id: &str, idempotency_key: &str, proof_id: &str, ) -> Result<Value, AuthError>
Supply a fresh, human-verified action-bound receipt for a customer policy. The caller obtains it through the issuer continuation; this does not approve payment.
pub async fn reconcile( &self, token: &str, account_id: &str, purchase_id: &str, ) -> Result<Value, AuthError>
Auto Trait Implementations§
impl Freeze for SaasClient
impl !RefUnwindSafe for SaasClient
impl Send for SaasClient
impl Sync for SaasClient
impl Unpin for SaasClient
impl UnsafeUnpin for SaasClient
impl !UnwindSafe for SaasClient
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