pub struct CloudArchivalWriterConfig {
pub archive_block_data: bool,
pub polling_interval: DurationAsStdSchemaProvider,
}Expand description
Configuration for a cloud-based archival writer. If this config is present, the writer is enabled and writes chunk-related data based on the tracked shards. This config also controls additional archival behavior such as block data and polling interval.
JSON schema
{
"description": "Configuration for a cloud-based archival writer. If this config is present, the writer is enabled and\nwrites chunk-related data based on the tracked shards. This config also controls additional archival\nbehavior such as block data and polling interval.",
"type": "object",
"properties": {
"archive_block_data": {
"description": "Determines whether block-related data should be written to cloud storage.",
"default": false,
"type": "boolean"
},
"polling_interval": {
"description": "Interval at which the system checks for new blocks or chunks to archive.",
"default": {
"nanos": 0,
"secs": 1
},
"allOf": [
{
"$ref": "#/components/schemas/DurationAsStdSchemaProvider"
}
]
}
}
}Fields§
§archive_block_data: boolDetermines whether block-related data should be written to cloud storage.
polling_interval: DurationAsStdSchemaProviderInterval at which the system checks for new blocks or chunks to archive.
Trait Implementations§
Source§impl Clone for CloudArchivalWriterConfig
impl Clone for CloudArchivalWriterConfig
Source§fn clone(&self) -> CloudArchivalWriterConfig
fn clone(&self) -> CloudArchivalWriterConfig
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 CloudArchivalWriterConfig
impl Debug for CloudArchivalWriterConfig
Source§impl Default for CloudArchivalWriterConfig
impl Default for CloudArchivalWriterConfig
Source§impl<'de> Deserialize<'de> for CloudArchivalWriterConfig
impl<'de> Deserialize<'de> for CloudArchivalWriterConfig
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<&CloudArchivalWriterConfig> for CloudArchivalWriterConfig
impl From<&CloudArchivalWriterConfig> for CloudArchivalWriterConfig
Source§fn from(value: &CloudArchivalWriterConfig) -> Self
fn from(value: &CloudArchivalWriterConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CloudArchivalWriterConfig
impl RefUnwindSafe for CloudArchivalWriterConfig
impl Send for CloudArchivalWriterConfig
impl Sync for CloudArchivalWriterConfig
impl Unpin for CloudArchivalWriterConfig
impl UnwindSafe for CloudArchivalWriterConfig
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