pub struct NetworkPolicyAmendment {
pub action: NetworkPolicyRuleAction,
pub host: String,
}Expand description
NetworkPolicyAmendment
JSON schema
{
"type": "object",
"required": [
"action",
"host"
],
"properties": {
"action": {
"$ref": "#/definitions/NetworkPolicyRuleAction"
},
"host": {
"type": "string"
}
}
}Fields§
§action: NetworkPolicyRuleAction§host: StringTrait Implementations§
Source§impl Clone for NetworkPolicyAmendment
impl Clone for NetworkPolicyAmendment
Source§fn clone(&self) -> NetworkPolicyAmendment
fn clone(&self) -> NetworkPolicyAmendment
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 NetworkPolicyAmendment
impl Debug for NetworkPolicyAmendment
Source§impl<'de> Deserialize<'de> for NetworkPolicyAmendment
impl<'de> Deserialize<'de> for NetworkPolicyAmendment
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
Auto Trait Implementations§
impl Freeze for NetworkPolicyAmendment
impl RefUnwindSafe for NetworkPolicyAmendment
impl Send for NetworkPolicyAmendment
impl Sync for NetworkPolicyAmendment
impl Unpin for NetworkPolicyAmendment
impl UnsafeUnpin for NetworkPolicyAmendment
impl UnwindSafe for NetworkPolicyAmendment
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