usage/get_usage_options.rs

deepgram-rust-sdk · src/manage/usage/get_usage_options.rs · rust · MIT
voice, Voice / Speech

Builder and options struct for configuring Deepgram usage API requests in Rust.

// Source: https://github.com/deepgram/deepgram-rust-sdk | License: MIT | Copyright 2022 Deepgram
// Provided via justclaw.it.com; keep this notice with the code.
//! Set options for [`Usage::get_usage`](super::Usage::get_usage).
//!
//! See the [Deepgram API Reference][api] for more info.
//!
//! [api]: https://developers.deepgram.com/api-reference/#usage-summary

use serde::{ser::SerializeSeq, Serialize};

/// Used as a parameter for [`Usage::get_usage`](super::Usage::get_usage).
///
/// See the [Deepgram API Reference][api] for more info.
///
/// [api]: https://developers.deepgram.com/api-reference/#usage-summary
#[derive(Debug, PartialEq, Clone)]
pub struct Options {
    start: Option<String>,
    end: Option<String>,
    accessor: Option<String>,
    tags: Vec<String>,
    methods: Ve

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key