pub struct CloudStorageConfig {
pub credentials_file: Option<String>,
pub storage: ExternalStorageLocation,
}Expand description
Configures the external storage used by the archival node.
JSON schema
{
"description": "Configures the external storage used by the archival node.",
"type": "object",
"required": [
"storage"
],
"properties": {
"credentials_file": {
"description": "Location of a json file with credentials allowing access to the bucket.",
"type": [
"string",
"null"
]
},
"storage": {
"description": "The storage to persist the archival data.",
"allOf": [
{
"$ref": "#/components/schemas/ExternalStorageLocation"
}
]
}
}
}Fields§
§credentials_file: Option<String>Location of a json file with credentials allowing access to the bucket.
storage: ExternalStorageLocationThe storage to persist the archival data.
Trait Implementations§
Source§impl Clone for CloudStorageConfig
impl Clone for CloudStorageConfig
Source§fn clone(&self) -> CloudStorageConfig
fn clone(&self) -> CloudStorageConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 CloudStorageConfig
impl Debug for CloudStorageConfig
Source§impl<'de> Deserialize<'de> for CloudStorageConfig
impl<'de> Deserialize<'de> for CloudStorageConfig
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<&CloudStorageConfig> for CloudStorageConfig
impl From<&CloudStorageConfig> for CloudStorageConfig
Source§fn from(value: &CloudStorageConfig) -> Self
fn from(value: &CloudStorageConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CloudStorageConfig
impl RefUnwindSafe for CloudStorageConfig
impl Send for CloudStorageConfig
impl Sync for CloudStorageConfig
impl Unpin for CloudStorageConfig
impl UnwindSafe for CloudStorageConfig
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