pub struct Client { /* private fields */ }Expand description
LTFI-WSAP API client
Implementations§
Source§impl Client
impl Client
Sourcepub fn from_env() -> Result<Self>
pub fn from_env() -> Result<Self>
Create a new client with default configuration (uses LTFI_WSAP_API_KEY env var)
Sourcepub async fn list_entities(
&self,
params: Option<ListParams>,
) -> Result<PaginatedResponse<Entity>>
pub async fn list_entities( &self, params: Option<ListParams>, ) -> Result<PaginatedResponse<Entity>>
List entities with optional filters
Sourcepub async fn get_entity(&self, id: &str) -> Result<Entity>
pub async fn get_entity(&self, id: &str) -> Result<Entity>
Get a specific entity by ID
Sourcepub async fn create_entity(
&self,
request: &CreateEntityRequest,
) -> Result<Entity>
pub async fn create_entity( &self, request: &CreateEntityRequest, ) -> Result<Entity>
Create a new entity
Sourcepub async fn update_entity(
&self,
id: &str,
request: &UpdateEntityRequest,
) -> Result<Entity>
pub async fn update_entity( &self, id: &str, request: &UpdateEntityRequest, ) -> Result<Entity>
Update an existing entity
Sourcepub async fn delete_entity(&self, id: &str) -> Result<()>
pub async fn delete_entity(&self, id: &str) -> Result<()>
Delete an entity
Sourcepub async fn initiate_verification(&self, domain: &str) -> Result<Verification>
pub async fn initiate_verification(&self, domain: &str) -> Result<Verification>
Initiate domain verification
Sourcepub async fn verify_domain(&self, domain: &str) -> Result<bool>
pub async fn verify_domain(&self, domain: &str) -> Result<bool>
Check if a domain is verified
Sourcepub async fn generate_wsap(
&self,
entity_id: &str,
level: DisclosureLevel,
) -> Result<WSAPData>
pub async fn generate_wsap( &self, entity_id: &str, level: DisclosureLevel, ) -> Result<WSAPData>
Generate WSAP data for an entity
Sourcepub async fn fetch_wsap(&self, domain: &str) -> Result<WSAPData>
pub async fn fetch_wsap(&self, domain: &str) -> Result<WSAPData>
Fetch public WSAP data for a domain
Sourcepub async fn get_current_user(&self) -> Result<User>
pub async fn get_current_user(&self) -> Result<User>
Get current authenticated user
Sourcepub async fn health_check(&self) -> Result<HealthResponse>
pub async fn health_check(&self) -> Result<HealthResponse>
Check API health status
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Freeze for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
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