pub struct ExportHostJson {Show 20 fields
pub name: String,
pub host: String,
pub port: u16,
pub user: String,
pub password: String,
pub key_path: Option<String>,
pub key_passphrase: Option<String>,
pub sudo_password: Option<String>,
pub su_password: Option<String>,
pub timeout_ms: u64,
pub max_command_chars: usize,
pub max_output_chars: usize,
pub disable_sudo: bool,
pub schema_version: u32,
pub added_at: String,
pub tags: Vec<String>,
pub tls: bool,
pub tls_sni: Option<String>,
pub tls_client_cert: Option<String>,
pub tls_client_key: Option<String>,
}Expand description
One host entry inside vps export --json (redacted or with secrets).
Fields§
§name: StringLogical name.
host: StringHostname or IP.
port: u16SSH port.
user: StringWire key user (export parity with list/show).
password: StringPassword plaintext when include_secrets; crate::masking::FIXED_MASK when redacted and non-empty; empty string when host has no password (G-E2E-10).
key_path: Option<String>Key path.
key_passphrase: Option<String>Optional secrets (null when redacted).
sudo_password: Option<String>Optional sudo password.
su_password: Option<String>Optional su password.
timeout_ms: u64Timeout ms.
max_command_chars: usizeCommand char limit.
max_output_chars: usizeOutput char limit.
disable_sudo: boolSudo/su disabled.
schema_version: u32Schema version.
added_at: StringRFC 3339.
Host tags (G-O2 / G-SERDE-06).
tls: boolSSH-over-TLS.
tls_sni: Option<String>TLS SNI.
tls_client_cert: Option<String>mTLS cert path.
tls_client_key: Option<String>mTLS key path.
Implementations§
Source§impl ExportHostJson
impl ExportHostJson
Sourcepub fn from_record(r: &VpsRecord, include_secrets: bool) -> Self
pub fn from_record(r: &VpsRecord, include_secrets: bool) -> Self
Builds export entry from a record.
Trait Implementations§
Source§impl Clone for ExportHostJson
impl Clone for ExportHostJson
Source§fn clone(&self) -> ExportHostJson
fn clone(&self) -> ExportHostJson
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 ExportHostJson
impl Debug for ExportHostJson
Source§impl<'de> Deserialize<'de> for ExportHostJson
impl<'de> Deserialize<'de> for ExportHostJson
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 ExportHostJson
Source§impl PartialEq for ExportHostJson
impl PartialEq for ExportHostJson
Source§impl Serialize for ExportHostJson
impl Serialize for ExportHostJson
impl StructuralPartialEq for ExportHostJson
Auto Trait Implementations§
impl Freeze for ExportHostJson
impl RefUnwindSafe for ExportHostJson
impl Send for ExportHostJson
impl Sync for ExportHostJson
impl Unpin for ExportHostJson
impl UnsafeUnpin for ExportHostJson
impl UnwindSafe for ExportHostJson
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§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.