pub enum ExternalStorageLocation {
S3 {
bucket: String,
region: String,
},
Filesystem {
root_dir: String,
},
Gcs {
bucket: String,
},
}Expand description
ExternalStorageLocation
JSON schema
{
"oneOf": [
{
"type": "object",
"required": [
"S3"
],
"properties": {
"S3": {
"type": "object",
"required": [
"bucket",
"region"
],
"properties": {
"bucket": {
"description": "Location of state dumps on S3.",
"type": "string"
},
"region": {
"description": "Data may only be available in certain locations.",
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"Filesystem"
],
"properties": {
"Filesystem": {
"type": "object",
"required": [
"root_dir"
],
"properties": {
"root_dir": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"GCS"
],
"properties": {
"GCS": {
"type": "object",
"required": [
"bucket"
],
"properties": {
"bucket": {
"type": "string"
}
}
}
},
"additionalProperties": false
}
]
}Variants§
Trait Implementations§
Source§impl Clone for ExternalStorageLocation
impl Clone for ExternalStorageLocation
Source§fn clone(&self) -> ExternalStorageLocation
fn clone(&self) -> ExternalStorageLocation
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExternalStorageLocation
impl Debug for ExternalStorageLocation
Source§impl<'de> Deserialize<'de> for ExternalStorageLocation
impl<'de> Deserialize<'de> for ExternalStorageLocation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExternalStorageLocation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExternalStorageLocation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ExternalStorageLocation> for ExternalStorageLocation
impl From<&ExternalStorageLocation> for ExternalStorageLocation
Source§fn from(value: &ExternalStorageLocation) -> ExternalStorageLocation
fn from(value: &ExternalStorageLocation) -> ExternalStorageLocation
Converts to this type from the input type.
Source§impl Serialize for ExternalStorageLocation
impl Serialize for ExternalStorageLocation
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ExternalStorageLocation
impl RefUnwindSafe for ExternalStorageLocation
impl Send for ExternalStorageLocation
impl Sync for ExternalStorageLocation
impl Unpin for ExternalStorageLocation
impl UnwindSafe for ExternalStorageLocation
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