pub struct NetworkCapability {
pub mode: NetworkMode,
pub probe_url: Option<String>,
pub probe_timeout_ms: u64,
}Expand description
Network status and probe configuration.
Fields§
§mode: NetworkModeRuntime network policy.
probe_url: Option<String>Optional backend health endpoint, separate from OS path state.
probe_timeout_ms: u64Probe timeout in milliseconds.
Trait Implementations§
Source§impl Clone for NetworkCapability
impl Clone for NetworkCapability
Source§impl Debug for NetworkCapability
impl Debug for NetworkCapability
Source§impl Default for NetworkCapability
impl Default for NetworkCapability
Source§impl<'de> Deserialize<'de> for NetworkCapabilitywhere
NetworkCapability: Default,
impl<'de> Deserialize<'de> for NetworkCapabilitywhere
NetworkCapability: Default,
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 JsonSchema for NetworkCapability
impl JsonSchema for NetworkCapability
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for NetworkCapability
impl PartialEq for NetworkCapability
Source§impl Serialize for NetworkCapability
impl Serialize for NetworkCapability
impl StructuralPartialEq for NetworkCapability
Auto Trait Implementations§
impl Freeze for NetworkCapability
impl RefUnwindSafe for NetworkCapability
impl Send for NetworkCapability
impl Sync for NetworkCapability
impl Unpin for NetworkCapability
impl UnsafeUnpin for NetworkCapability
impl UnwindSafe for NetworkCapability
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