pub struct CloudStateConfig {
pub enabled: bool,
pub api_url: Option<String>,
pub run_id: Option<String>,
pub heartbeat_interval_secs: u32,
pub graceful_degradation: bool,
pub git_remote: GitRemoteStateConfig,
}Expand description
Cloud configuration that is safe to store in reducer state / checkpoints.
This is a redacted view of CloudConfig: it carries only non-sensitive
fields required for pure orchestration.
In particular, it MUST NOT contain API tokens, git tokens, or any other credential material.
Fields§
§enabled: bool§api_url: Option<String>§run_id: Option<String>§heartbeat_interval_secs: u32§graceful_degradation: bool§git_remote: GitRemoteStateConfigImplementations§
Trait Implementations§
Source§impl Clone for CloudStateConfig
impl Clone for CloudStateConfig
Source§fn clone(&self) -> CloudStateConfig
fn clone(&self) -> CloudStateConfig
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 CloudStateConfig
impl Debug for CloudStateConfig
Source§impl Default for CloudStateConfig
impl Default for CloudStateConfig
Source§fn default() -> CloudStateConfig
fn default() -> CloudStateConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CloudStateConfig
impl<'de> Deserialize<'de> for CloudStateConfig
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<&CloudConfig> for CloudStateConfig
impl From<&CloudConfig> for CloudStateConfig
Source§fn from(cfg: &CloudConfig) -> Self
fn from(cfg: &CloudConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CloudStateConfig
impl RefUnwindSafe for CloudStateConfig
impl Send for CloudStateConfig
impl Sync for CloudStateConfig
impl Unpin for CloudStateConfig
impl UnsafeUnpin for CloudStateConfig
impl UnwindSafe for CloudStateConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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