pub struct ComplianceClient { /* private fields */ }Expand description
Async HTTP client for the Circle W3S Compliance Engine API.
Implementations§
Source§impl ComplianceClient
impl ComplianceClient
Sourcepub fn new(api_key: impl Into<String>) -> Self
pub fn new(api_key: impl Into<String>) -> Self
Creates a new client using the Circle production base URL.
Sourcepub fn with_base_url(
api_key: impl Into<String>,
base_url: impl Into<String>,
) -> Self
pub fn with_base_url( api_key: impl Into<String>, base_url: impl Into<String>, ) -> Self
Creates a new client with a custom base URL (useful for Prism mock servers).
Sourcepub async fn screen_address(
&self,
req: &ScreenAddressRequest,
) -> Result<BlockchainAddressScreeningResponse, Error>
pub async fn screen_address( &self, req: &ScreenAddressRequest, ) -> Result<BlockchainAddressScreeningResponse, Error>
Screen a blockchain address for compliance risk.
This is an idempotent operation: repeating the same idempotency_key
returns the original response without re-running the screening.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ComplianceClient
impl !RefUnwindSafe for ComplianceClient
impl Send for ComplianceClient
impl Sync for ComplianceClient
impl Unpin for ComplianceClient
impl UnsafeUnpin for ComplianceClient
impl !UnwindSafe for ComplianceClient
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