mirror of
https://git.proxmox.com/git/proxmox-ve-rs
synced 2025-10-04 14:51:00 +00:00
firewall: alias: document difference between Alias and AliasName
Alias and AliasName represent two different parts inside a firewall configuration. Document the respective structs better to make the differences between them clearer. Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
This commit is contained in:
parent
5e52054af4
commit
8d3f985492
@ -35,6 +35,8 @@ impl Display for AliasScope {
|
||||
}
|
||||
}
|
||||
|
||||
/// Represents the name of an alias in a firewall rule in the RULES section of the firewall
|
||||
/// configuration.
|
||||
#[derive(Debug, Clone, DeserializeFromStr, SerializeDisplay)]
|
||||
#[cfg_attr(test, derive(Eq, PartialEq))]
|
||||
pub struct AliasName {
|
||||
@ -86,6 +88,11 @@ impl AliasName {
|
||||
}
|
||||
}
|
||||
|
||||
/// Represents an Alias stored in the ALIASES section of the firewall configuration.
|
||||
///
|
||||
/// Since they contain no scope in the firewall configuration itself, this struct also does not
|
||||
/// contain a scope. The scope has to be inferred from the Context where this Alias is stored, if
|
||||
/// that is necessary.
|
||||
#[derive(Debug)]
|
||||
#[cfg_attr(test, derive(Eq, PartialEq))]
|
||||
pub struct Alias {
|
||||
|
Loading…
Reference in New Issue
Block a user