pub struct GeneratePolicyResult {
pub x_oss_signature_version: String,
pub x_oss_credential: String,
pub x_oss_date: String,
pub x_oss_signature: String,
pub policy: String,
pub callback: Option<String>,
pub callback_var: Option<HashMap<String, String>>,
pub x_oss_security_token: Option<String>,
}Fields§
§x_oss_signature_version: String固定为OSS4-HMAC-SHA256
x_oss_credential: String§x_oss_date: String§x_oss_signature: String§policy: Stringbase64编码后的policy字符串
callback: Option<String>base64编码后的callback字符串
callback_var: Option<HashMap<String, String>>§x_oss_security_token: Option<String>如果使用了STS临时密钥,需要在请求头中添加x-oss-security-token
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GeneratePolicyResult
impl RefUnwindSafe for GeneratePolicyResult
impl Send for GeneratePolicyResult
impl Sync for GeneratePolicyResult
impl Unpin for GeneratePolicyResult
impl UnsafeUnpin for GeneratePolicyResult
impl UnwindSafe for GeneratePolicyResult
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