pub(crate) struct CentralKvSyncConfig {
pub(crate) servers: Vec<ServerAddr>,
pub(crate) creds_path: String,
pub(crate) bucket: String,
pub(crate) key: String,
pub(crate) domain: Option<String>,
}Expand description
Connection and key details for mirroring configuration from central NATS.
Built by central_kv_sync_config_from_env.
Fields§
§servers: Vec<ServerAddr>Central NATS server addresses.
creds_path: StringCredentials file for the central connection.
bucket: StringCentral KV bucket name.
key: StringCentral KV key to mirror.
domain: Option<String>JetStream domain on the central server, if any.
Trait Implementations§
Source§impl Clone for CentralKvSyncConfig
impl Clone for CentralKvSyncConfig
Source§fn clone(&self) -> CentralKvSyncConfig
fn clone(&self) -> CentralKvSyncConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CentralKvSyncConfig
impl RefUnwindSafe for CentralKvSyncConfig
impl Send for CentralKvSyncConfig
impl Sync for CentralKvSyncConfig
impl Unpin for CentralKvSyncConfig
impl UnsafeUnpin for CentralKvSyncConfig
impl UnwindSafe for CentralKvSyncConfig
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