dropbox-sdk 0.20.3

Rust bindings to the Dropbox API, generated by Stone from the official spec.
Documentation
// DO NOT EDIT
// This file was @generated by Stone

#![allow(
    clippy::too_many_arguments,
    clippy::large_enum_variant,
    clippy::result_large_err,
    clippy::doc_markdown,
    clippy::doc_lazy_continuation,
)]

#[allow(unused_imports)]
pub use crate::generated::types::riviera::*;

/// Asynchronous document-to-markdown conversion for supported file formats. Supported formats:
/// .binder, .docx, .html, .paper, .papert, .pptx, .xlsx, .gsheet, .ods, .pdf. Unsupported formats
/// return an `unsupported_format_error`. Size limit: the source file must be at most 50 MB. Larger
/// files are rejected.
///
/// # Stability
/// *PREVIEW*: This function may change or disappear without notice.
#[cfg(feature = "unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
pub fn get_markdown_async<'a>(
    client: &'a impl crate::async_client_trait::UserAuthClient,
    arg: &'a GetMarkdownArgs,
) -> impl std::future::Future<Output=Result<crate::types::dbx_async::LaunchResultBase, crate::Error<crate::NoError>>> + Send + 'a {
    crate::client_helpers::request(
        client,
        crate::client_trait_common::Endpoint::Api,
        crate::client_trait_common::Style::Rpc,
        "riviera/get_markdown_async",
        arg,
        None)
}

/// Asynchronous document-to-markdown conversion for supported file formats. Supported formats:
/// .binder, .docx, .html, .paper, .papert, .pptx, .xlsx, .gsheet, .ods, .pdf. Unsupported formats
/// return an `unsupported_format_error`. Size limit: the source file must be at most 50 MB. Larger
/// files are rejected.
///
/// # Stability
/// *PREVIEW*: This function may change or disappear without notice.
#[cfg(feature = "unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
pub fn get_markdown_async_app_auth<'a>(
    client: &'a impl crate::async_client_trait::AppAuthClient,
    arg: &'a GetMarkdownArgs,
) -> impl std::future::Future<Output=Result<crate::types::dbx_async::LaunchResultBase, crate::Error<crate::NoError>>> + Send + 'a {
    crate::client_helpers::request(
        client,
        crate::client_trait_common::Endpoint::Api,
        crate::client_trait_common::Style::Rpc,
        "riviera/get_markdown_async",
        arg,
        None)
}

/// Returns the status or result of specified get_markdown_async task.
///
/// # Stability
/// *PREVIEW*: This function may change or disappear without notice.
#[cfg(feature = "unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
pub fn get_markdown_async_check<'a>(
    client: &'a impl crate::async_client_trait::UserAuthClient,
    arg: &'a crate::types::dbx_async::PollArg,
) -> impl std::future::Future<Output=Result<GetMarkdownAsyncCheckResult, crate::Error<crate::types::dbx_async::PollError>>> + Send + 'a {
    crate::client_helpers::request(
        client,
        crate::client_trait_common::Endpoint::Api,
        crate::client_trait_common::Style::Rpc,
        "riviera/get_markdown_async/check",
        arg,
        None)
}

/// Returns the status or result of specified get_markdown_async task.
///
/// # Stability
/// *PREVIEW*: This function may change or disappear without notice.
#[cfg(feature = "unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
pub fn get_markdown_async_check_app_auth<'a>(
    client: &'a impl crate::async_client_trait::AppAuthClient,
    arg: &'a crate::types::dbx_async::PollArg,
) -> impl std::future::Future<Output=Result<GetMarkdownAsyncCheckResult, crate::Error<crate::types::dbx_async::PollError>>> + Send + 'a {
    crate::client_helpers::request(
        client,
        crate::client_trait_common::Endpoint::Api,
        crate::client_trait_common::Style::Rpc,
        "riviera/get_markdown_async/check",
        arg,
        None)
}

/// Asynchronous file metadata extraction for supported file formats. The kind of metadata returned
/// depends on the file type: - Image (EXIF) formats: .3fr, .arw, .avif, .bmp, .cr2, .cr3, .crw,
/// .dcr, .dcs, .dng, .erf, .gif, .heic, .j2c, .j2k, .jp2, .jpc, .jpeg, .jpf, .jpg, .jpg2, .jpm,
/// .jpx, .kdc, .mef, .mos, .mrw, .nef, .nrw, .orf, .pef, .png, .ppm, .r3d, .raf, .rw2, .rwl, .sr2,
/// .tga, .tif, .tiff, .wbmp, .web, .webp, .x3f. - Audio/video (media) formats: .aac, .aif, .aiff,
/// .flac, .m4a, .m4r, .mp3, .oga, .ogg, .wav, .wma, .3gp, .3gpp, .3gpp2, .asf, .avi, .dv, .flv,
/// .m2t, .m2ts, .m4v, .mkv, .mov, .mp4, .mpeg, .mpg, .mts, .mxf, .oggtheora, .ogv, .rm, .ts, .vob,
/// .webm, .wmv. - PDF format: .pdf. - MS Office formats: .docx, .pptx, .xlsx. Unsupported formats
/// return an `unsupported_format_error`.
///
/// # Stability
/// *PREVIEW*: This function may change or disappear without notice.
#[cfg(feature = "unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
pub fn get_metadata_async<'a>(
    client: &'a impl crate::async_client_trait::UserAuthClient,
    arg: &'a GetMetadataArgs,
) -> impl std::future::Future<Output=Result<crate::types::dbx_async::LaunchResultBase, crate::Error<crate::NoError>>> + Send + 'a {
    crate::client_helpers::request(
        client,
        crate::client_trait_common::Endpoint::Api,
        crate::client_trait_common::Style::Rpc,
        "riviera/get_metadata_async",
        arg,
        None)
}

/// Asynchronous file metadata extraction for supported file formats. The kind of metadata returned
/// depends on the file type: - Image (EXIF) formats: .3fr, .arw, .avif, .bmp, .cr2, .cr3, .crw,
/// .dcr, .dcs, .dng, .erf, .gif, .heic, .j2c, .j2k, .jp2, .jpc, .jpeg, .jpf, .jpg, .jpg2, .jpm,
/// .jpx, .kdc, .mef, .mos, .mrw, .nef, .nrw, .orf, .pef, .png, .ppm, .r3d, .raf, .rw2, .rwl, .sr2,
/// .tga, .tif, .tiff, .wbmp, .web, .webp, .x3f. - Audio/video (media) formats: .aac, .aif, .aiff,
/// .flac, .m4a, .m4r, .mp3, .oga, .ogg, .wav, .wma, .3gp, .3gpp, .3gpp2, .asf, .avi, .dv, .flv,
/// .m2t, .m2ts, .m4v, .mkv, .mov, .mp4, .mpeg, .mpg, .mts, .mxf, .oggtheora, .ogv, .rm, .ts, .vob,
/// .webm, .wmv. - PDF format: .pdf. - MS Office formats: .docx, .pptx, .xlsx. Unsupported formats
/// return an `unsupported_format_error`.
///
/// # Stability
/// *PREVIEW*: This function may change or disappear without notice.
#[cfg(feature = "unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
pub fn get_metadata_async_app_auth<'a>(
    client: &'a impl crate::async_client_trait::AppAuthClient,
    arg: &'a GetMetadataArgs,
) -> impl std::future::Future<Output=Result<crate::types::dbx_async::LaunchResultBase, crate::Error<crate::NoError>>> + Send + 'a {
    crate::client_helpers::request(
        client,
        crate::client_trait_common::Endpoint::Api,
        crate::client_trait_common::Style::Rpc,
        "riviera/get_metadata_async",
        arg,
        None)
}

/// Returns the status or result of specified get_metadata_async task.
///
/// # Stability
/// *PREVIEW*: This function may change or disappear without notice.
#[cfg(feature = "unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
pub fn get_metadata_async_check<'a>(
    client: &'a impl crate::async_client_trait::UserAuthClient,
    arg: &'a crate::types::dbx_async::PollArg,
) -> impl std::future::Future<Output=Result<GetMetadataAsyncCheckResult, crate::Error<crate::types::dbx_async::PollError>>> + Send + 'a {
    crate::client_helpers::request(
        client,
        crate::client_trait_common::Endpoint::Api,
        crate::client_trait_common::Style::Rpc,
        "riviera/get_metadata_async/check",
        arg,
        None)
}

/// Returns the status or result of specified get_metadata_async task.
///
/// # Stability
/// *PREVIEW*: This function may change or disappear without notice.
#[cfg(feature = "unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
pub fn get_metadata_async_check_app_auth<'a>(
    client: &'a impl crate::async_client_trait::AppAuthClient,
    arg: &'a crate::types::dbx_async::PollArg,
) -> impl std::future::Future<Output=Result<GetMetadataAsyncCheckResult, crate::Error<crate::types::dbx_async::PollError>>> + Send + 'a {
    crate::client_helpers::request(
        client,
        crate::client_trait_common::Endpoint::Api,
        crate::client_trait_common::Style::Rpc,
        "riviera/get_metadata_async/check",
        arg,
        None)
}

/// Asynchronous transcript generation for audio and video files. Supported audio formats: .aac,
/// .aif, .aiff, .flac, .m4a, .m4r, .mp3, .oga, .ogg, .wav, .wma. Supported video formats: .3gp,
/// .3gpp, .3gpp2, .asf, .avi, .dv, .flv, .m2t, .m2ts, .m4v, .mkv, .mov, .mp4, .mpeg, .mpg, .mts,
/// .mxf, .oggtheora, .ogv, .rm, .ts, .vob, .webm, .wmv. Unsupported formats return an
/// `unsupported_format_error`. Size limits: the source file must be at most 10 GB and its audio
/// track at most 1 hour in duration. Files exceeding these limits are rejected.
///
/// # Stability
/// *PREVIEW*: This function may change or disappear without notice.
#[cfg(feature = "unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
pub fn get_transcript_async<'a>(
    client: &'a impl crate::async_client_trait::UserAuthClient,
    arg: &'a GetTranscriptArgs,
) -> impl std::future::Future<Output=Result<crate::types::dbx_async::LaunchResultBase, crate::Error<crate::NoError>>> + Send + 'a {
    crate::client_helpers::request(
        client,
        crate::client_trait_common::Endpoint::Api,
        crate::client_trait_common::Style::Rpc,
        "riviera/get_transcript_async",
        arg,
        None)
}

/// Asynchronous transcript generation for audio and video files. Supported audio formats: .aac,
/// .aif, .aiff, .flac, .m4a, .m4r, .mp3, .oga, .ogg, .wav, .wma. Supported video formats: .3gp,
/// .3gpp, .3gpp2, .asf, .avi, .dv, .flv, .m2t, .m2ts, .m4v, .mkv, .mov, .mp4, .mpeg, .mpg, .mts,
/// .mxf, .oggtheora, .ogv, .rm, .ts, .vob, .webm, .wmv. Unsupported formats return an
/// `unsupported_format_error`. Size limits: the source file must be at most 10 GB and its audio
/// track at most 1 hour in duration. Files exceeding these limits are rejected.
///
/// # Stability
/// *PREVIEW*: This function may change or disappear without notice.
#[cfg(feature = "unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
pub fn get_transcript_async_app_auth<'a>(
    client: &'a impl crate::async_client_trait::AppAuthClient,
    arg: &'a GetTranscriptArgs,
) -> impl std::future::Future<Output=Result<crate::types::dbx_async::LaunchResultBase, crate::Error<crate::NoError>>> + Send + 'a {
    crate::client_helpers::request(
        client,
        crate::client_trait_common::Endpoint::Api,
        crate::client_trait_common::Style::Rpc,
        "riviera/get_transcript_async",
        arg,
        None)
}

/// Returns the status or result of specified get_transcript_async task.
///
/// # Stability
/// *PREVIEW*: This function may change or disappear without notice.
#[cfg(feature = "unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
pub fn get_transcript_async_check<'a>(
    client: &'a impl crate::async_client_trait::UserAuthClient,
    arg: &'a crate::types::dbx_async::PollArg,
) -> impl std::future::Future<Output=Result<GetTranscriptAsyncCheckResult, crate::Error<crate::types::dbx_async::PollError>>> + Send + 'a {
    crate::client_helpers::request(
        client,
        crate::client_trait_common::Endpoint::Api,
        crate::client_trait_common::Style::Rpc,
        "riviera/get_transcript_async/check",
        arg,
        None)
}

/// Returns the status or result of specified get_transcript_async task.
///
/// # Stability
/// *PREVIEW*: This function may change or disappear without notice.
#[cfg(feature = "unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
pub fn get_transcript_async_check_app_auth<'a>(
    client: &'a impl crate::async_client_trait::AppAuthClient,
    arg: &'a crate::types::dbx_async::PollArg,
) -> impl std::future::Future<Output=Result<GetTranscriptAsyncCheckResult, crate::Error<crate::types::dbx_async::PollError>>> + Send + 'a {
    crate::client_helpers::request(
        client,
        crate::client_trait_common::Endpoint::Api,
        crate::client_trait_common::Style::Rpc,
        "riviera/get_transcript_async/check",
        arg,
        None)
}