pub struct Config {
pub git_protocol: GitProtocol,
pub editor: Option<String>,
pub prompt: Prompt,
pub pager: Option<String>,
pub aliases: HashMap<String, String>,
pub http_unix_socket: Option<String>,
pub browser: Option<String>,
}Expand description
Config representation for gh CLI.
Fields§
§git_protocol: GitProtocolWhat protocol to use when performing git operations.
editor: Option<String>What editor gh should run when creating issues, pull requests, etc. If blank, will refer to environment.
prompt: PromptWhen to interactively prompt. This is a global config that cannot be overridden by hostname.
pager: Option<String>A pager program to send command output to, e.g. “less”. Set the value to “cat” to disable the pager.
aliases: HashMap<String, String>Aliases allow you to create nicknames for gh commands.
http_unix_socket: Option<String>The path to a unix socket through which send HTTP connections. If blank, HTTP traffic will be handled by default transport.
browser: Option<String>What web browser gh should use when opening URLs. If blank, will refer to environment.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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 Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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