pub struct StateSyncConfig {
pub dump: Option<DumpConfig>,
pub sync: Option<SyncConfig>,
}Expand description
Options for dumping state to S3.
JSON schema
{
"description": "Options for dumping state to S3.",
"type": "object",
"properties": {
"dump": {
"description": "`none` value disables state dump to external storage.",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/DumpConfig"
}
]
}
]
},
"sync": {
"$ref": "#/components/schemas/SyncConfig"
}
}
}Fields§
§dump: Option<DumpConfig>none value disables state dump to external storage.
sync: Option<SyncConfig>Trait Implementations§
Source§impl Clone for StateSyncConfig
impl Clone for StateSyncConfig
Source§fn clone(&self) -> StateSyncConfig
fn clone(&self) -> StateSyncConfig
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 StateSyncConfig
impl Debug for StateSyncConfig
Source§impl Default for StateSyncConfig
impl Default for StateSyncConfig
Source§fn default() -> StateSyncConfig
fn default() -> StateSyncConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StateSyncConfig
impl<'de> Deserialize<'de> for StateSyncConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StateSyncConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StateSyncConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&StateSyncConfig> for StateSyncConfig
impl From<&StateSyncConfig> for StateSyncConfig
Source§fn from(value: &StateSyncConfig) -> StateSyncConfig
fn from(value: &StateSyncConfig) -> StateSyncConfig
Converts to this type from the input type.
Source§impl Serialize for StateSyncConfig
impl Serialize for StateSyncConfig
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 StateSyncConfig
impl RefUnwindSafe for StateSyncConfig
impl Send for StateSyncConfig
impl Sync for StateSyncConfig
impl Unpin for StateSyncConfig
impl UnwindSafe for StateSyncConfig
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