pub struct BipaClient { /* private fields */ }Implementations§
Source§impl BipaClient
impl BipaClient
pub async fn connect(config: &ClientConfig) -> Result<Self>
pub fn from_channel(endpoint: String, channel: Channel) -> Self
pub fn lazy_channel(config: &ClientConfig) -> Result<Channel>
pub fn endpoint(&self) -> &str
pub fn set_jwt(&mut self, jwt: impl Into<String>)
pub fn set_device_id(&mut self, device_id: impl Into<String>)
pub fn set_client_mode(&mut self, mode: impl Into<String>)
pub fn set_agent_name(&mut self, name: impl Into<String>)
pub fn jwt(&self) -> Option<&str>
pub fn agent_name(&self) -> Option<&str>
pub async fn attempt_auth_email( &mut self, email: &str, ) -> Result<AttemptAuthResult>
pub async fn attempt_auth_phone( &mut self, phone: &str, ) -> Result<AttemptAuthResult>
pub async fn validate_auth( &mut self, auth_token: &str, pin: &str, ) -> Result<ValidatedAuth>
pub async fn refresh_auth(&mut self) -> Result<RefreshAuthResponse>
pub async fn logout(&mut self) -> Result<()>
pub async fn list_stark_pix_keys(&mut self) -> Result<ListStarkPixKeysResponse>
pub async fn consult_stark_pix_key( &mut self, key: &str, ) -> Result<ConsultStarkPixKeyResponse>
pub async fn request_stark_pix_outflow( &mut self, pix_key_payment_id: i32, amount_cents: i64, note: &str, agent_message: &str, ) -> Result<RequestStarkPixOutflowResponse>
pub async fn request_stark_pix_outflow_with_request_id( &mut self, pix_key_payment_id: i32, amount_cents: i64, note: &str, agent_message: &str, request_id: Option<&str>, ) -> Result<RequestStarkPixOutflowResponse>
pub async fn get_stark_pix_outflow_status( &mut self, id: i32, ) -> Result<GetStarkPixOutflowRequestStatusResponse>
Sourcepub async fn poll_outflow_status(
&mut self,
id: i32,
) -> Result<OutflowPollResult>
pub async fn poll_outflow_status( &mut self, id: i32, ) -> Result<OutflowPollResult>
Poll GetStarkPixOutflowRequestStatus until a terminal status is reached.
pub async fn get_pix_limits(&mut self) -> Result<GetPixLimitsResponse>
pub async fn load_user_cli(&mut self) -> Result<LoadUserCliResponse>
pub async fn balances(&mut self) -> Result<BalancesResponse>
pub async fn list_pix_transactions( &mut self, page_size: i32, cursor: Option<String>, ) -> Result<ListPixTransactionsResponse>
pub async fn get_detailed_transaction( &mut self, transaction_id: &str, ) -> Result<DetailedTransaction>
Auto Trait Implementations§
impl !Freeze for BipaClient
impl !RefUnwindSafe for BipaClient
impl Send for BipaClient
impl Sync for BipaClient
impl Unpin for BipaClient
impl UnsafeUnpin for BipaClient
impl !UnwindSafe for BipaClient
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 moreSource§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