pub enum BodySpec {
Inline {
inline_base64: String,
},
Storage {
size: Option<i64>,
storage_get_request: Option<PresignedRequest>,
storage_put_used: Option<bool>,
},
}Expand description
Body specification supporting inline and storage modes
JSON schema
{
"description": "Body specification supporting inline and storage modes",
"oneOf": [
{
"description": "Inline base64-encoded body",
"type": "object",
"required": [
"inlineBase64",
"mode"
],
"properties": {
"inlineBase64": {
"type": "string"
},
"mode": {
"type": "string",
"enum": [
"inline"
]
}
}
},
{
"description": "Storage-backed body",
"type": "object",
"required": [
"mode"
],
"properties": {
"mode": {
"type": "string",
"enum": [
"storage"
]
},
"size": {
"description": "Size of the body in bytes",
"type": [
"integer",
"null"
],
"format": "int64",
"minimum": 0.0
},
"storageGetRequest": {
"$ref": "#/components/schemas/PresignedRequest"
},
"storagePutUsed": {
"description": "Indicates storage upload was used for response submission",
"type": [
"boolean",
"null"
]
}
}
}
]
}Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BodySpec
impl<'de> Deserialize<'de> for BodySpec
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
Auto Trait Implementations§
impl Freeze for BodySpec
impl RefUnwindSafe for BodySpec
impl Send for BodySpec
impl Sync for BodySpec
impl Unpin for BodySpec
impl UnsafeUnpin for BodySpec
impl UnwindSafe for BodySpec
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