pub struct Host {Show 13 fields
pub name: String,
pub ssh_target: String,
pub port: u16,
pub identity: Option<PathBuf>,
pub triple: String,
pub install_dir: String,
pub recipient: String,
pub bucket: String,
pub region: String,
pub prefix: String,
pub endpoint: Option<String>,
pub mirror: bool,
pub push_alias: Option<String>,
}Fields§
§name: String§ssh_target: String§port: u16§identity: Option<PathBuf>§triple: String§install_dir: String§recipient: StringThe host’s config values, carried here so the client can re-render
and re-apply config.toml/secrets.toml at will (mirror
designation, credential rotation) without re-probing the host.
#[serde(default)] on every field below so an existing hosts.toml
from before this slice still loads.
bucket: String§region: String§prefix: String§endpoint: Option<String>§mirror: boolWhether this host is the client-enforced singleton GitHub mirror.
push_alias: Option<String>The ~/.ssh/config alias git push rides to reach this host. Recorded
only when it departs from the git-ark-<name> convention (a hand-wired
or adopted host); None means “conventional — resolve to git-ark-<name>”.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Host
impl<'de> Deserialize<'de> for Host
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 StructuralPartialEq for Host
Auto Trait Implementations§
impl Freeze for Host
impl RefUnwindSafe for Host
impl Send for Host
impl Sync for Host
impl Unpin for Host
impl UnsafeUnpin for Host
impl UnwindSafe for Host
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