1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use oauth2_client::re_exports::{Deserialize_enum_str, Scope, Serialize_enum_str};
pub const TOKEN_URL: &str = "https://openapi.baidu.com/oauth/2.0/token";
pub const AUTHORIZATION_URL: &str = "http://openapi.baidu.com/oauth/2.0/authorize";
pub const DEVICE_AUTHORIZATION_URL: &str = "https://openapi.baidu.com/oauth/2.0/device/code";
pub mod authorization_code_grant;
pub mod device_authorization_grant;
pub use authorization_code_grant::BaiduProviderWithWebApplication;
pub use device_authorization_grant::BaiduProviderWithDevice;
pub mod extensions;
pub use extensions::BaiduExtensionsBuilder;
#[derive(Deserialize_enum_str, Serialize_enum_str, Debug, Clone, PartialEq, Eq)]
pub enum BaiduScope {
#[serde(rename = "basic")]
Basic,
#[serde(rename = "netdisk")]
Netdisk,
#[serde(other)]
Other(String),
}
impl Scope for BaiduScope {}