pub struct SyncConfig {
pub enabled: bool,
pub dir: String,
pub configs: BTreeMap<String, Value>,
pub raw_configs: Value,
pub auth_revision: i64,
pub store_auth: Vec<AuthConfig>,
pub proxy_url: String,
}Expand description
The parts of a config a sync reads (Go’s cfg.Plugins and cfg.ProxyURL).
Fields§
§enabled: bool§dir: Stringplugins.dir as configured.
configs: BTreeMap<String, Value>Each plugins.configs.<id> subtree, by ID as written.
raw_configs: Valueplugins.configs with its plain scalars’ text (Config::plugin_configs), so a
respelt value (1.50 to 1.5) is a change, as Go’s raw node makes it one.
auth_revision: i64§store_auth: Vec<AuthConfig>plugins.store-auth, normalized.
proxy_url: StringImplementations§
Source§impl SyncConfig
impl SyncConfig
pub fn from_document(document: &Value) -> Self
Trait Implementations§
Source§impl Clone for SyncConfig
impl Clone for SyncConfig
Source§impl Debug for SyncConfig
impl Debug for SyncConfig
Source§impl Default for SyncConfig
impl Default for SyncConfig
Source§impl PartialEq for SyncConfig
impl PartialEq for SyncConfig
impl StructuralPartialEq for SyncConfig
Auto Trait Implementations§
impl Forget for SyncConfig
impl Freeze for SyncConfig
impl Move for SyncConfig
impl RefUnwindSafe for SyncConfig
impl Send for SyncConfig
impl Sync for SyncConfig
impl Unpin for SyncConfig
impl UnsafeUnpin for SyncConfig
impl UnwindSafe for SyncConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more