docs.rs failed to build oriko-services-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
oriko-services-0.1.1
oriko-services
Voudo Oriko services - Gmail API client.
Installation
Add to your Cargo.toml:
[]
= { = "../packages/oriko-services" }
# Or from crates.io (when published)
# oriko-services = "0.1.0"
Usage
Basic Setup
use ;
use async_trait;
// Implement TokenProvider
;
// Create client
let client = builder
.token_provider
.build?;
Fetch Messages
// Fetch messages
let messages = client.fetch_messages.await?;
// Fetch specific message
let message = client.fetch_message.await?;
// Parse email
let parsed = client.parse_email?;
API
GmailClient
GmailClient::builder()- Create builderfetch_messages(max_results)- Fetch message listfetch_message(message_id)- Fetch full messageparse_email(message)- Parse email into structured format
GmailClientBuilder
http_client(client)- Set custom HTTP clienttoken_provider(provider)- Set token provider (required)build()- Build client
TokenProvider Trait
Implement this trait to provide access tokens. The client will call this method for each API request.