pub struct ProtectedMcpRouteConfig {
pub name: String,
pub enabled: bool,
pub public_host: String,
pub public_path: String,
pub upstream: Option<String>,
pub backend_url: String,
pub scopes: Vec<String>,
pub target: Option<ProtectedGatewaySubsetTarget>,
}Fields§
§name: String§enabled: bool§public_host: String§public_path: String§upstream: Option<String>§backend_url: String§scopes: Vec<String>§target: Option<ProtectedGatewaySubsetTarget>Implementations§
Source§impl ProtectedMcpRouteConfig
impl ProtectedMcpRouteConfig
pub fn validate(&self) -> Result<(), ConfigError>
pub fn public_resource(&self) -> String
Trait Implementations§
Source§impl Clone for ProtectedMcpRouteConfig
impl Clone for ProtectedMcpRouteConfig
Source§fn clone(&self) -> ProtectedMcpRouteConfig
fn clone(&self) -> ProtectedMcpRouteConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProtectedMcpRouteConfig
impl Debug for ProtectedMcpRouteConfig
Source§impl Default for ProtectedMcpRouteConfig
impl Default for ProtectedMcpRouteConfig
Source§impl<'de> Deserialize<'de> for ProtectedMcpRouteConfig
impl<'de> Deserialize<'de> for ProtectedMcpRouteConfig
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<&ProtectedMcpRouteConfig> for ProtectedMcpRouteConfigView
impl From<&ProtectedMcpRouteConfig> for ProtectedMcpRouteConfigView
Source§fn from(route: &ProtectedMcpRouteConfig) -> Self
fn from(route: &ProtectedMcpRouteConfig) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProtectedMcpRouteConfig
impl PartialEq for ProtectedMcpRouteConfig
Source§fn eq(&self, other: &ProtectedMcpRouteConfig) -> bool
fn eq(&self, other: &ProtectedMcpRouteConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProtectedMcpRouteConfig
impl Serialize for ProtectedMcpRouteConfig
impl Eq for ProtectedMcpRouteConfig
impl StructuralPartialEq for ProtectedMcpRouteConfig
Auto Trait Implementations§
impl Freeze for ProtectedMcpRouteConfig
impl RefUnwindSafe for ProtectedMcpRouteConfig
impl Send for ProtectedMcpRouteConfig
impl Sync for ProtectedMcpRouteConfig
impl Unpin for ProtectedMcpRouteConfig
impl UnsafeUnpin for ProtectedMcpRouteConfig
impl UnwindSafe for ProtectedMcpRouteConfig
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,
§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
Compare self to
key and return true if they are equal.