pub struct FirewallRule {
pub id: Uuid,
pub name: String,
pub rule_type: FirewallRuleType,
pub source_ip: Option<String>,
pub destination_port: Option<u16>,
pub protocol: Protocol,
pub action: FirewallAction,
pub is_enabled: bool,
pub created_at: DateTime<Utc>,
}
Expand description
防火墙规则
Fields§
§id: Uuid
§name: String
§rule_type: FirewallRuleType
§source_ip: Option<String>
§destination_port: Option<u16>
§protocol: Protocol
§action: FirewallAction
§is_enabled: bool
§created_at: DateTime<Utc>
Trait Implementations§
Source§impl Clone for FirewallRule
impl Clone for FirewallRule
Source§fn clone(&self) -> FirewallRule
fn clone(&self) -> FirewallRule
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 FirewallRule
impl Debug for FirewallRule
Source§impl<'de> Deserialize<'de> for FirewallRule
impl<'de> Deserialize<'de> for FirewallRule
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 FirewallRule
impl RefUnwindSafe for FirewallRule
impl Send for FirewallRule
impl Sync for FirewallRule
impl Unpin for FirewallRule
impl UnwindSafe for FirewallRule
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