pub struct CloudFactsConfig {
pub enabled: bool,
pub channel: String,
pub url: Option<String>,
pub ttl_hours: u64,
}Expand description
Cloud facts overlay ([cloud_facts] table in config.toml). Off by default;
see docs/CLOUD_FACTS.md. Env: CODEWHALE_CLOUD_FACTS=1|0 overrides
enabled, CODEWHALE_DISABLE_CLOUD_FACTS=1 is a hard kill switch.
Fields§
§enabled: boolWhen false (default), no cloud facts are read or fetched; the binary behaves exactly as it ships.
channel: StringChannel slug (stable / beta).
url: Option<String>Optional endpoint override ({channel} placeholder allowed).
ttl_hours: u64Hours between refreshes of a verified payload.
Implementations§
Trait Implementations§
Source§impl Clone for CloudFactsConfig
impl Clone for CloudFactsConfig
Source§impl Debug for CloudFactsConfig
impl Debug for CloudFactsConfig
Source§impl Default for CloudFactsConfig
impl Default for CloudFactsConfig
Source§impl<'de> Deserialize<'de> for CloudFactsConfig
impl<'de> Deserialize<'de> for CloudFactsConfig
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
impl Eq for CloudFactsConfig
Source§impl PartialEq for CloudFactsConfig
impl PartialEq for CloudFactsConfig
impl StructuralPartialEq for CloudFactsConfig
Auto Trait Implementations§
impl Forget for CloudFactsConfig
impl Freeze for CloudFactsConfig
impl Move for CloudFactsConfig
impl RefUnwindSafe for CloudFactsConfig
impl Send for CloudFactsConfig
impl Sync for CloudFactsConfig
impl Unpin for CloudFactsConfig
impl UnsafeUnpin for CloudFactsConfig
impl UnwindSafe for CloudFactsConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.