#[non_exhaustive]pub enum Reference {
MachineName,
OwnAddress {
network: String,
},
Address {
machine: String,
network: String,
},
Port {
machine: String,
port: PortName,
field: PortField,
},
CloudOutput(String),
Version,
Os(OsField),
Var(String),
Setting {
name: String,
field: SettingField,
},
Item(String),
ItemPath(String),
}Expand description
What a placeholder names.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MachineName
machine.name: the machine the template is for.
OwnAddress
machine.addresses.<network>: its address on that network.
Address
machines.<m>.addresses.<network>: another machine’s address on a network.
Port
machines.<m>.ports.<name>.port|published|url: a machine’s port.
CloudOutput(String)
cloud.outputs.<name>: an output of the cloud module.
Version
version: a catalogue entry’s resolved release.
Os(OsField)
os.family, os.version, os.codename: the machine’s OS.
Var(String)
vars.<x>: a variable of the entry’s release.
Setting
with.<setting>, or with.<setting>.path for a password given as a secret or an input.
Item(String)
item.<field>: a field of the list item a for_each step is repeated for.
ItemPath(String)
item.<field>.path: the value file of a list item’s password field.
Implementations§
Trait Implementations§
impl Eq for Reference
Source§impl FromStr for Reference
impl FromStr for Reference
impl StructuralPartialEq for Reference
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnsafeUnpin for Reference
impl UnwindSafe for Reference
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.