pub struct NetworkProtectNetworkCreate {
pub description: Option<String>,
pub name: String,
pub prefix: String,
pub rule_set_id: Option<String>,
pub endpoint_policies: Option<Vec<NetworkProtectEndpointPolicy>>,
}Expand description
NetworkProtectNetworkCreate : Attributes accepted when creating a network.
Fields§
§description: Option<String>Optional descriptive text for the network. This metadata does not change traffic handling. Null clears it on update.
name: StringA human-readable name, unique within the customer.
prefix: StringThe CIDR block to protect, masked to its network address. It cannot be changed after creation.
rule_set_id: Option<String>Custom rule-set attachment is unavailable. Omit this value or send an empty string to use the backend-assigned default rule set.
endpoint_policies: Option<Vec<NetworkProtectEndpointPolicy>>Complete endpoint policy configuration. A network has at most one policy per region and may have no policies.
Implementations§
Source§impl NetworkProtectNetworkCreate
impl NetworkProtectNetworkCreate
Sourcepub fn new(name: String, prefix: String) -> NetworkProtectNetworkCreate
pub fn new(name: String, prefix: String) -> NetworkProtectNetworkCreate
Attributes accepted when creating a network.
Trait Implementations§
Source§impl Clone for NetworkProtectNetworkCreate
impl Clone for NetworkProtectNetworkCreate
Source§impl Debug for NetworkProtectNetworkCreate
impl Debug for NetworkProtectNetworkCreate
Source§impl<'de> Deserialize<'de> for NetworkProtectNetworkCreate
impl<'de> Deserialize<'de> for NetworkProtectNetworkCreate
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
impl StructuralPartialEq for NetworkProtectNetworkCreate
Auto Trait Implementations§
impl Freeze for NetworkProtectNetworkCreate
impl RefUnwindSafe for NetworkProtectNetworkCreate
impl Send for NetworkProtectNetworkCreate
impl Sync for NetworkProtectNetworkCreate
impl Unpin for NetworkProtectNetworkCreate
impl UnsafeUnpin for NetworkProtectNetworkCreate
impl UnwindSafe for NetworkProtectNetworkCreate
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