pub struct Machine {
pub id: String,
pub host: String,
pub port: u16,
pub user: String,
pub key_path: Option<String>,
pub tags: Vec<String>,
pub working_dir: Option<String>,
pub registered_at: DateTime<Utc>,
pub last_health: Option<HealthStatus>,
}Expand description
A registered remote machine.
Fields§
§id: StringUnique machine identifier (user-chosen name).
host: StringHostname or IP address.
port: u16SSH port (default: 22).
user: StringSSH username.
key_path: Option<String>Path to SSH private key (optional, uses ssh-agent by default).
Optional tags for grouping machines.
working_dir: Option<String>Working directory on the remote machine.
registered_at: DateTime<Utc>When this machine was registered.
last_health: Option<HealthStatus>Last health check result.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Machine
impl<'de> Deserialize<'de> for Machine
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 Machine
impl RefUnwindSafe for Machine
impl Send for Machine
impl Sync for Machine
impl Unpin for Machine
impl UnsafeUnpin for Machine
impl UnwindSafe for Machine
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