pub struct RemoteConfigFile {
pub url: String,
pub capabilities: Option<Vec<String>>,
pub token_env: Option<String>,
}Expand description
On-disk shape of a single [remote.<name>] section.
Fields§
§url: StringRemote URL. Any URL scheme is accepted at the config layer;
interpretation (https://, file://, mnem+ssh://, …) is
up to the transport driver. PR 2 does not implement any
drivers.
capabilities: Option<Vec<String>>Optional capability allow-list. When None, the client
advertises every capability in Capability::all that this
build knows. When Some, only these capabilities are
advertised (useful for interop-testing against older servers
or for opting out of filter-spec).
Unknown capability strings on the wire are tolerated and
silently dropped (forward-compat). A config.toml file that
lists an unknown string will likewise parse into this
capability set with the unknown dropped. This matches the
forward-compat rule in crate::protocol::parse_capabilities.
token_env: Option<String>Optional name of an environment variable holding the bearer
token. When set, the CLI layer reads that variable at request
time and injects the token via RemoteConfig::with_token.
Trait Implementations§
Source§impl Clone for RemoteConfigFile
impl Clone for RemoteConfigFile
Source§fn clone(&self) -> RemoteConfigFile
fn clone(&self) -> RemoteConfigFile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RemoteConfigFile
impl Debug for RemoteConfigFile
Source§impl<'de> Deserialize<'de> for RemoteConfigFile
impl<'de> Deserialize<'de> for RemoteConfigFile
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>,
Source§impl PartialEq for RemoteConfigFile
impl PartialEq for RemoteConfigFile
Source§fn eq(&self, other: &RemoteConfigFile) -> bool
fn eq(&self, other: &RemoteConfigFile) -> bool
self and other values to be equal, and is used by ==.