pub struct DemoPolicyConfig {Show 18 fields
pub session_ttl_secs: Option<u64>,
pub poll_interval_ms: Option<u64>,
pub run_timeout_secs: Option<u64>,
pub max_active_runs_global: Option<u32>,
pub max_active_runs_per_visitor: Option<u32>,
pub accepted_starts_per_token: Option<u32>,
pub accepted_starts_per_client_ip: Option<u32>,
pub accepted_start_window_secs: Option<u64>,
pub retained_runs_per_visitor: Option<u32>,
pub max_runs_per_session: Option<u32>,
pub max_tune_run_rows_global: Option<u32>,
pub max_json_body_bytes: Option<u64>,
pub max_sse_per_visitor: Option<u32>,
pub max_sse_global: Option<u32>,
pub sse_lifetime_secs: Option<u64>,
pub ordinary_request_concurrency: Option<u32>,
pub ordinary_request_timeout_secs: Option<u64>,
pub cleanup_interval_secs: Option<u64>,
}Expand description
Optional declarations of the fixed DemoPolicy contract.
Missing keys receive the approved value. A present key must state that same value; public Demo deployments cannot weaken or silently diverge from the documented resource policy.
Fields§
§session_ttl_secs: Option<u64>Anonymous visitor-session lifetime. Fixed at 86,400 seconds.
poll_interval_ms: Option<u64>Simulator polling interval. Fixed at 200 milliseconds.
run_timeout_secs: Option<u64>Whole-run timeout. Fixed at 30 seconds.
max_active_runs_global: Option<u32>Active Demo tune limit across all visitors. Fixed at 8.
max_active_runs_per_visitor: Option<u32>Active Demo tune limit for one visitor. Fixed at 1.
accepted_starts_per_token: Option<u32>Accepted starts for one session token in the quota window. Fixed at 6.
accepted_starts_per_client_ip: Option<u32>Accepted starts for one client IP in the quota window. Fixed at 6.
accepted_start_window_secs: Option<u64>Window shared by both accepted-start quotas. Fixed at 600 seconds.
retained_runs_per_visitor: Option<u32>Completed runs retained for one visitor. Fixed at 10.
max_runs_per_session: Option<u32>Runs retained for one session. Fixed at 10.
max_tune_run_rows_global: Option<u32>Current Demo-owned tune_runs row limit across all visitors. Fixed at 5,000.
max_json_body_bytes: Option<u64>Maximum JSON request-body size. Fixed at 32,768 bytes.
max_sse_per_visitor: Option<u32>Simultaneous SSE streams for one visitor. Fixed at 2.
max_sse_global: Option<u32>Simultaneous Demo SSE streams across all visitors. Fixed at 32.
sse_lifetime_secs: Option<u64>Absolute lifetime of one Demo SSE stream. Fixed at 45 seconds.
ordinary_request_concurrency: Option<u32>Concurrent ordinary, non-streaming Demo API requests. Fixed at 64.
ordinary_request_timeout_secs: Option<u64>Timeout for an ordinary, non-streaming Demo API request. Fixed at 10 seconds.
cleanup_interval_secs: Option<u64>Interval between Demo cleanup passes. Fixed at 300 seconds.
Trait Implementations§
Source§impl Clone for DemoPolicyConfig
impl Clone for DemoPolicyConfig
Source§fn clone(&self) -> DemoPolicyConfig
fn clone(&self) -> DemoPolicyConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ComposeSchema for DemoPolicyConfig
impl ComposeSchema for DemoPolicyConfig
impl Copy for DemoPolicyConfig
Source§impl Debug for DemoPolicyConfig
impl Debug for DemoPolicyConfig
Source§impl Default for DemoPolicyConfig
impl Default for DemoPolicyConfig
Source§fn default() -> DemoPolicyConfig
fn default() -> DemoPolicyConfig
Source§impl<'de> Deserialize<'de> for DemoPolicyConfig
impl<'de> Deserialize<'de> for DemoPolicyConfig
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>,
impl Eq for DemoPolicyConfig
Source§impl JsonSchema for DemoPolicyConfig
impl JsonSchema for DemoPolicyConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for DemoPolicyConfig
impl PartialEq for DemoPolicyConfig
Source§fn eq(&self, other: &DemoPolicyConfig) -> bool
fn eq(&self, other: &DemoPolicyConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for DemoPolicyConfig
impl Serialize for DemoPolicyConfig
impl StructuralPartialEq for DemoPolicyConfig
Auto Trait Implementations§
impl Freeze for DemoPolicyConfig
impl RefUnwindSafe for DemoPolicyConfig
impl Send for DemoPolicyConfig
impl Sync for DemoPolicyConfig
impl Unpin for DemoPolicyConfig
impl UnsafeUnpin for DemoPolicyConfig
impl UnwindSafe for DemoPolicyConfig
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
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].