pub struct ProxySettings {
pub backends: Vec<ProxySettingsBackend>,
pub description: Option<String>,
pub is_active: Option<bool>,
pub object: Option<String>,
pub revision: Option<f64>,
pub routes: Vec<ProxySettingsRoute>,
}
Expand description
A ProxySettings is a revision of the proxy settings of a project.
JSON schema
{
"description": "A ProxySettings is a revision of the proxy settings of a project.",
"type": "object",
"properties": {
"backends": {
"description": "The backend list of the proxy.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ProxySettingsBackend"
}
},
"description": {
"description": "Description of the proxy settings revision.",
"type": "string"
},
"is_active": {
"description": "Whether this revision is the active one.",
"readOnly": true,
"type": "boolean"
},
"object": {
"description": "String representing the object's type. Objects of the same type share the same value",
"readOnly": true,
"examples": [
"proxy_settings"
],
"type": "string"
},
"revision": {
"description": "The revision number of the proxy settings.",
"readOnly": true,
"type": "number"
},
"routes": {
"description": "The routing rules of the proxy.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ProxySettingsRoute"
}
}
}
}
Fields§
§backends: Vec<ProxySettingsBackend>
The backend list of the proxy.
description: Option<String>
Description of the proxy settings revision.
is_active: Option<bool>
Whether this revision is the active one.
object: Option<String>
String representing the object’s type. Objects of the same type share the same value
revision: Option<f64>
§routes: Vec<ProxySettingsRoute>
The routing rules of the proxy.
Implementations§
Source§impl ProxySettings
impl ProxySettings
pub fn builder() -> ProxySettings
Trait Implementations§
Source§impl Clone for ProxySettings
impl Clone for ProxySettings
Source§fn clone(&self) -> ProxySettings
fn clone(&self) -> ProxySettings
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 ProxySettings
impl Debug for ProxySettings
Source§impl Default for ProxySettings
impl Default for ProxySettings
Source§impl<'de> Deserialize<'de> for ProxySettings
impl<'de> Deserialize<'de> for ProxySettings
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<&ProxySettings> for ProxySettings
impl From<&ProxySettings> for ProxySettings
Source§fn from(value: &ProxySettings) -> Self
fn from(value: &ProxySettings) -> Self
Converts to this type from the input type.
Source§impl From<ProxySettings> for ProxySettings
impl From<ProxySettings> for ProxySettings
Source§fn from(value: ProxySettings) -> Self
fn from(value: ProxySettings) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ProxySettings
impl JsonSchema for ProxySettings
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl Serialize for ProxySettings
impl Serialize for ProxySettings
Source§impl TryFrom<ProxySettings> for ProxySettings
impl TryFrom<ProxySettings> for ProxySettings
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ProxySettings) -> Result<Self, ConversionError>
fn try_from(value: ProxySettings) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ProxySettings
impl RefUnwindSafe for ProxySettings
impl Send for ProxySettings
impl Sync for ProxySettings
impl Unpin for ProxySettings
impl UnwindSafe for ProxySettings
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