pub enum PresignedRequestBackend {
Http {
headers: HashMap<String, String>,
method: String,
url: String,
},
Local {
file_path: String,
operation: LocalOperation,
},
}Expand description
Storage backend representation for different presigned request types
JSON schema
{
"description": "Storage backend representation for different presigned request types",
"oneOf": [
{
"description": "HTTP-based request (AWS S3, GCP GCS, Azure Blob)",
"type": "object",
"required": [
"headers",
"method",
"type",
"url"
],
"properties": {
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"method": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"http"
]
},
"url": {
"type": "string"
}
}
},
{
"description": "Local filesystem operation",
"type": "object",
"required": [
"filePath",
"operation",
"type"
],
"properties": {
"filePath": {
"type": "string"
},
"operation": {
"$ref": "#/components/schemas/LocalOperation"
},
"type": {
"type": "string",
"enum": [
"local"
]
}
}
}
]
}Variants§
Trait Implementations§
Source§impl Clone for PresignedRequestBackend
impl Clone for PresignedRequestBackend
Source§fn clone(&self) -> PresignedRequestBackend
fn clone(&self) -> PresignedRequestBackend
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 PresignedRequestBackend
impl Debug for PresignedRequestBackend
Source§impl<'de> Deserialize<'de> for PresignedRequestBackend
impl<'de> Deserialize<'de> for PresignedRequestBackend
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<&PresignedRequestBackend> for PresignedRequestBackend
impl From<&PresignedRequestBackend> for PresignedRequestBackend
Source§fn from(value: &PresignedRequestBackend) -> Self
fn from(value: &PresignedRequestBackend) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PresignedRequestBackend
impl RefUnwindSafe for PresignedRequestBackend
impl Send for PresignedRequestBackend
impl Sync for PresignedRequestBackend
impl Unpin for PresignedRequestBackend
impl UnsafeUnpin for PresignedRequestBackend
impl UnwindSafe for PresignedRequestBackend
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