pub struct PresignedRequest {
pub backend: PresignedRequestBackend,
pub expiration: DateTime<Utc>,
pub operation: PresignedOperation,
pub path: String,
}Expand description
A presigned request that can be serialized, stored, and executed later. Hides implementation details for different storage backends.
JSON schema
{
"description": "A presigned request that can be serialized, stored, and executed later.\nHides implementation details for different storage backends.",
"type": "object",
"required": [
"backend",
"expiration",
"operation",
"path"
],
"properties": {
"backend": {
"$ref": "#/components/schemas/PresignedRequestBackend"
},
"expiration": {
"description": "When this presigned request expires",
"type": "string",
"format": "date-time"
},
"operation": {
"$ref": "#/components/schemas/PresignedOperation"
},
"path": {
"description": "The path this request operates on",
"type": "string"
}
}
}Fields§
§backend: PresignedRequestBackend§expiration: DateTime<Utc>When this presigned request expires
operation: PresignedOperation§path: StringThe path this request operates on
Implementations§
Source§impl PresignedRequest
impl PresignedRequest
pub fn builder() -> PresignedRequest
Trait Implementations§
Source§impl Clone for PresignedRequest
impl Clone for PresignedRequest
Source§fn clone(&self) -> PresignedRequest
fn clone(&self) -> PresignedRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PresignedRequest
impl Debug for PresignedRequest
Source§impl<'de> Deserialize<'de> for PresignedRequest
impl<'de> Deserialize<'de> for PresignedRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&PresignedRequest> for PresignedRequest
impl From<&PresignedRequest> for PresignedRequest
Source§fn from(value: &PresignedRequest) -> Self
fn from(value: &PresignedRequest) -> Self
Converts to this type from the input type.
Source§impl From<PresignedRequest> for PresignedRequest
impl From<PresignedRequest> for PresignedRequest
Source§fn from(value: PresignedRequest) -> Self
fn from(value: PresignedRequest) -> Self
Converts to this type from the input type.
Source§impl Serialize for PresignedRequest
impl Serialize for PresignedRequest
Source§impl TryFrom<PresignedRequest> for PresignedRequest
impl TryFrom<PresignedRequest> for PresignedRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PresignedRequest) -> Result<Self, ConversionError>
fn try_from(value: PresignedRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PresignedRequest
impl RefUnwindSafe for PresignedRequest
impl Send for PresignedRequest
impl Sync for PresignedRequest
impl Unpin for PresignedRequest
impl UnsafeUnpin for PresignedRequest
impl UnwindSafe for PresignedRequest
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