#[non_exhaustive]pub enum PostPolicyField<'a> {
Show 24 variants
Key,
Acl,
Tagging,
SuccessActionRedirect,
SuccessActionStatus,
CacheControl,
ContentLengthRange,
ContentType,
ContentDisposition,
ContentEncoding,
Expires,
AmzServerSideEncryption,
AmzServerSideEncryptionKeyId,
AmzServerSideEncryptionContext,
AmzStorageClass,
AmzWebsiteRedirectLocation,
AmzChecksumAlgorithm(PostPolicyChecksum),
AmzMeta(Cow<'a, str>),
AmzCredential,
AmzAlgorithm,
AmzDate,
AmzSecurityToken,
Bucket,
Custom(Cow<'a, str>),
}Expand description
Policy fields to add to the conditions of the policy
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Key
The destination path. Supports PostPolicyValue::StartsWith
Acl
The ACL policy. Supports PostPolicyValue::StartsWith
Tagging
Custom tag XML document
SuccessActionRedirect
Successful redirect URL. Supports PostPolicyValue::StartsWith
SuccessActionStatus
Successful action status (e.g. 200, 201, or 204).
CacheControl
The cache control Supports PostPolicyValue::StartsWith
ContentLengthRange
The content length (must use the PostPolicyValue::Range)
ContentType
The content type. Supports PostPolicyValue::StartsWith
ContentDisposition
Content Disposition. Supports PostPolicyValue::StartsWith
ContentEncoding
The content encoding. Supports PostPolicyValue::StartsWith
Expires
The Expires header to respond when fetching. Supports PostPolicyValue::StartsWith
AmzServerSideEncryption
The server-side encryption type
AmzServerSideEncryptionKeyId
The SSE key ID to use (if the algorithm specified requires it)
AmzServerSideEncryptionContext
The SSE context to use (if the algorithm specified requires it)
AmzStorageClass
The storage class to use
AmzWebsiteRedirectLocation
Specify a bucket relative or absolute UR redirect to redirect to when fetching this object
AmzChecksumAlgorithm(PostPolicyChecksum)
Checksum algorithm, the value is the checksum
AmzMeta(Cow<'a, str>)
Any user-defined meta fields (AmzMeta(“uuid”.to_string) creates an x-amz-meta-uuid)
AmzCredential
The credential. Auto added by the presign_post
AmzAlgorithm
The signing algorithm. Auto added by the presign_post
AmzDate
The signing date. Auto added by the presign_post
AmzSecurityToken
The Security token (for Amazon DevPay)
Bucket
The Bucket. Auto added by the presign_post
Custom(Cow<'a, str>)
Custom field. Any other string not enumerated above
Trait Implementations§
Source§impl<'a> Clone for PostPolicyField<'a>
impl<'a> Clone for PostPolicyField<'a>
Source§fn clone(&self) -> PostPolicyField<'a>
fn clone(&self) -> PostPolicyField<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more