pub struct MachineConfig {
pub id: String,
}Expand description
Stable per-machine identity. ONLY the id is persisted; the display label is
the hostname (stamped onto each snapshot’s --host), never stored here — so
renaming the host never moves backups, and there’s no second copy to drift.
Fields§
§id: StringOpaque, stable id — a UUID for self-host, or the orchestrator’s machine
id (RYRA_MACHINE_ID) for managed. This IS the per-machine backup bucket
prefix, so it must survive hostname changes and reinstalls.
Trait Implementations§
Source§impl Clone for MachineConfig
impl Clone for MachineConfig
Source§fn clone(&self) -> MachineConfig
fn clone(&self) -> MachineConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MachineConfig
impl Debug for MachineConfig
Source§impl<'de> Deserialize<'de> for MachineConfig
impl<'de> Deserialize<'de> for MachineConfig
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 Eq for MachineConfig
Source§impl PartialEq for MachineConfig
impl PartialEq for MachineConfig
Source§fn eq(&self, other: &MachineConfig) -> bool
fn eq(&self, other: &MachineConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MachineConfig
impl Serialize for MachineConfig
impl StructuralPartialEq for MachineConfig
Auto Trait Implementations§
impl Freeze for MachineConfig
impl RefUnwindSafe for MachineConfig
impl Send for MachineConfig
impl Sync for MachineConfig
impl Unpin for MachineConfig
impl UnsafeUnpin for MachineConfig
impl UnwindSafe for MachineConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.