Struct hcloud::models::firewall_resource_with_required_type::FirewallResourceWithRequiredType
source · pub struct FirewallResourceWithRequiredType {
pub label_selector: Option<Box<LabelSelector>>,
pub server: Option<Box<ResourceId>>,
pub type: Type,
}
Expand description
FirewallResourceWithRequiredType : Resource a Firewall should be applied to.
Fields§
§label_selector: Option<Box<LabelSelector>>
§server: Option<Box<ResourceId>>
§type: Type
Type of the resource
Implementations§
source§impl FirewallResourceWithRequiredType
impl FirewallResourceWithRequiredType
sourcepub fn new(type: Type) -> FirewallResourceWithRequiredType
pub fn new(type: Type) -> FirewallResourceWithRequiredType
Resource a Firewall should be applied to.
Trait Implementations§
source§impl Clone for FirewallResourceWithRequiredType
impl Clone for FirewallResourceWithRequiredType
source§fn clone(&self) -> FirewallResourceWithRequiredType
fn clone(&self) -> FirewallResourceWithRequiredType
Returns a copy 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 Default for FirewallResourceWithRequiredType
impl Default for FirewallResourceWithRequiredType
source§fn default() -> FirewallResourceWithRequiredType
fn default() -> FirewallResourceWithRequiredType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FirewallResourceWithRequiredType
impl<'de> Deserialize<'de> for FirewallResourceWithRequiredType
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 PartialEq for FirewallResourceWithRequiredType
impl PartialEq for FirewallResourceWithRequiredType
source§fn eq(&self, other: &FirewallResourceWithRequiredType) -> bool
fn eq(&self, other: &FirewallResourceWithRequiredType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FirewallResourceWithRequiredType
Auto Trait Implementations§
impl RefUnwindSafe for FirewallResourceWithRequiredType
impl Send for FirewallResourceWithRequiredType
impl Sync for FirewallResourceWithRequiredType
impl Unpin for FirewallResourceWithRequiredType
impl UnwindSafe for FirewallResourceWithRequiredType
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