pub enum IdKind {
Server,
Skill,
Project,
SecretAlias,
EnvVar,
Machine,
Apply,
Store,
}Expand description
Which identifier rule applies.
Variants§
Server
Server id: ^[a-z0-9][a-z0-9._-]{0,63}$.
Skill
Skill id, same rule as servers.
Project
Project id, same rule as servers.
SecretAlias
Secret alias: ^[A-Za-z_][A-Za-z0-9_]{0,63}$, so it doubles as an
environment variable name.
EnvVar
Environment variable name: ^[A-Za-z_][A-Za-z0-9_]*$.
Machine
Machine id: a ULID (26 Crockford base32 characters, upper case).
Apply
Apply id: a ULID, as for machines.
Store
Store id (loadout.toml): a ULID, as for machines.
Implementations§
Trait Implementations§
impl Copy for IdKind
impl Eq for IdKind
impl StructuralPartialEq for IdKind
Auto Trait Implementations§
impl Forget for IdKind
impl Freeze for IdKind
impl Move for IdKind
impl RefUnwindSafe for IdKind
impl Send for IdKind
impl Sync for IdKind
impl Unpin for IdKind
impl UnsafeUnpin for IdKind
impl UnwindSafe for IdKind
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.