dropbox-sdk 0.19.1

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,
)]

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

/// This route is used for refreshing the info that is found in the id_token during the OIDC flow.
/// This route doesn't require any arguments and will use the scopes approved for the given access
/// token.
///
/// # Stability
/// *PREVIEW*: This function may change or disappear without notice.
#[cfg(feature = "unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
pub fn userinfo(
    client: &impl crate::client_trait::UserAuthClient,
    arg: &UserInfoArgs,
) -> Result<UserInfoResult, crate::Error<UserInfoError>> {
    crate::client_helpers::unwrap_async(
        crate::client_helpers::request(
            client,
            crate::client_trait_common::Endpoint::Api,
            crate::client_trait_common::Style::Rpc,
            "openid/userinfo",
            arg,
            None)
    )
}