pub struct DumpConfig {
pub credentials_file: Option<String>,
pub iteration_delay: Option<DurationAsStdSchemaProvider>,
pub location: ExternalStorageLocation,
pub restart_dump_for_shards: Option<Vec<ShardId>>,
}Expand description
Configures how to dump state to external storage.
JSON schema
{
"description": "Configures how to dump state to external storage.",
"type": "object",
"required": [
"location"
],
"properties": {
"credentials_file": {
"description": "Location of a json file with credentials allowing write access to the bucket.",
"type": [
"string",
"null"
]
},
"iteration_delay": {
"description": "How often to check if a new epoch has started.\n Feel free to set to `None`, defaults are sensible.",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/DurationAsStdSchemaProvider"
}
]
}
]
},
"location": {
"description": "Specifies where to write the obtained state parts.",
"allOf": [
{
"$ref": "#/components/schemas/ExternalStorageLocation"
}
]
},
"restart_dump_for_shards": {
"description": "Use in case a node that dumps state to the external storage\n gets in trouble.",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ShardId"
}
}
}
}Fields§
§credentials_file: Option<String>Location of a json file with credentials allowing write access to the bucket.
iteration_delay: Option<DurationAsStdSchemaProvider>How often to check if a new epoch has started.
Feel free to set to None, defaults are sensible.
location: ExternalStorageLocationSpecifies where to write the obtained state parts.
restart_dump_for_shards: Option<Vec<ShardId>>Use in case a node that dumps state to the external storage gets in trouble.
Trait Implementations§
Source§impl Clone for DumpConfig
impl Clone for DumpConfig
Source§fn clone(&self) -> DumpConfig
fn clone(&self) -> DumpConfig
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 DumpConfig
impl Debug for DumpConfig
Source§impl<'de> Deserialize<'de> for DumpConfig
impl<'de> Deserialize<'de> for DumpConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DumpConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DumpConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&DumpConfig> for DumpConfig
impl From<&DumpConfig> for DumpConfig
Source§fn from(value: &DumpConfig) -> DumpConfig
fn from(value: &DumpConfig) -> DumpConfig
Converts to this type from the input type.
Source§impl Serialize for DumpConfig
impl Serialize for DumpConfig
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 DumpConfig
impl RefUnwindSafe for DumpConfig
impl Send for DumpConfig
impl Sync for DumpConfig
impl Unpin for DumpConfig
impl UnwindSafe for DumpConfig
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