azure_core/
constants.rs
1pub mod resource_manager_endpoint {
3 static_url!(
4 AZURE_CHINA_CLOUD,
6 "https://management.chinacloudapi.cn"
7 );
8
9 static_url!(
10 AZURE_GERMANY_CLOUD,
12 "https://management.microsoftazure.de"
13 );
14
15 static_url!(
16 AZURE_PUBLIC_CLOUD,
18 "https://management.azure.com"
19 );
20
21 static_url!(
22 AZURE_US_GOVERNMENT_CLOUD,
24 "https://management.usgovcloudapi.net"
25 );
26}
27
28pub mod authority_hosts {
30 static_url!(
31 AZURE_CHINA_CLOUD,
33 "https://login.chinacloudapi.cn"
34 );
35
36 static_url!(
37 AZURE_GERMANY_CLOUD,
39 "https://login.microsoftonline.de"
40 );
41
42 static_url!(
43 AZURE_US_GOVERNMENT_CLOUD,
45 "https://login.microsoftonline.us"
46 );
47
48 static_url!(
49 AZURE_PUBLIC_CLOUD,
51 "https://login.microsoftonline.com"
52 );
53}
54
55pub mod content_type {
59 use crate::headers::HeaderValue;
60
61 pub const MULTIPART_FORM_DATA: HeaderValue = HeaderValue::from_static("multipart/form-data");
65 pub const APPLICATION_X_WWW_FORM_URLENCODED: HeaderValue =
66 HeaderValue::from_static("application/x-www-form-urlencoded");
67
68 pub const APPLICATION_XML: HeaderValue = HeaderValue::from_static("application/xml");
69 pub const APPLICATION_JSON: HeaderValue = HeaderValue::from_static("application/json");
70 pub const APPLICATION_OCTET_STREAM: HeaderValue =
71 HeaderValue::from_static("application/octet-stream");
72 pub const TEXT_PLAIN: HeaderValue = HeaderValue::from_static("text/plain");
73}
74
75pub mod query_param {
77 pub const API_VERSION: &str = "api-version";
78}