Struct reqsign::TencentCosConfig
source · pub struct TencentCosConfig {
pub region: Option<String>,
pub secret_id: Option<String>,
pub secret_key: Option<String>,
pub security_token: Option<String>,
pub role_arn: Option<String>,
pub role_session_name: String,
pub provider_id: Option<String>,
pub web_identity_token_file: Option<String>,
}
Expand description
Config carries all the configuration for Tencent COS services.
Fields§
§region: Option<String>
region
will be loaded from:
- this field if it’s
is_some
- env value: [
TENCENTCLOUD_REGION
] or [TKE_REGION
]
secret_id: Option<String>
access_key_id
will be loaded from
- this field if it’s
is_some
- env value: [
TENCENTCLOUD_SECRET_ID
] or [TKE_SECRET_ID
]
secret_key: Option<String>
secret_access_key
will be loaded from
- this field if it’s
is_some
- env value: [
TENCENTCLOUD_SECRET_KEY
] or [TKE_SECRET_KEY
]
security_token: Option<String>
security_token
will be loaded from
- this field if it’s
is_some
- env value: [
TENCENTCLOUD_TOKEN
] or [TENCENTCLOUD_SECURITY_TOKEN
]
role_arn: Option<String>
role_arn
value will be load from:
- this field if it’s
is_some
. - env value: [
TENCENTCLOUD_ROLE_ARN
] or [TKE_ROLE_ARN
]
role_session_name: String
role_session_name
value will be load from:
- env value: [
TENCENTCLOUD_ROLE_SESSSION_NAME
] or [TKE_ROLE_SESSSION_NAME
] - default to
reqsign
.
provider_id: Option<String>
provider_id
will be loaded from
- this field if it’s
is_some
- env value: [
TENCENTCLOUD_PROVIDER_ID
] or [TKE_PROVIDER_ID
]
web_identity_token_file: Option<String>
web_identity_token_file
will be loaded from
- this field if it’s
is_some
- env value: [
TENCENTCLOUD_WEB_IDENTITY_TOKEN_FILE
] or [TKE_IDENTITY_TOKEN_FILE
]
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)