Struct proto_pdk_api::SyncShellProfileOutput
source · pub struct SyncShellProfileOutput {
pub check_var: String,
pub export_vars: Option<FxHashMap<String, String>>,
pub extend_path: Option<Vec<String>>,
pub skip_sync: bool,
}
Expand description
Output returned by the sync_shell_profile
function.
Fields§
§check_var: String
An environment variable to check for in the shell profile. If the variable exists, injecting path and exports will be avoided.
export_vars: Option<FxHashMap<String, String>>
A mapping of environment variables that will be injected as exports.
extend_path: Option<Vec<String>>
A list of paths to prepend to the PATH
environment variable.
skip_sync: bool
Whether to skip the syncing process or not.
Trait Implementations§
source§impl Clone for SyncShellProfileOutput
impl Clone for SyncShellProfileOutput
source§fn clone(&self) -> SyncShellProfileOutput
fn clone(&self) -> SyncShellProfileOutput
Returns a copy of the value. Read more
1.0.0 · 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 SyncShellProfileOutput
impl Debug for SyncShellProfileOutput
source§impl Default for SyncShellProfileOutput
impl Default for SyncShellProfileOutput
source§fn default() -> SyncShellProfileOutput
fn default() -> SyncShellProfileOutput
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SyncShellProfileOutputwhere
SyncShellProfileOutput: Default,
impl<'de> Deserialize<'de> for SyncShellProfileOutputwhere
SyncShellProfileOutput: Default,
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
source§impl PartialEq for SyncShellProfileOutput
impl PartialEq for SyncShellProfileOutput
source§fn eq(&self, other: &SyncShellProfileOutput) -> bool
fn eq(&self, other: &SyncShellProfileOutput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SyncShellProfileOutput
impl Serialize for SyncShellProfileOutput
impl StructuralPartialEq for SyncShellProfileOutput
Auto Trait Implementations§
impl Freeze for SyncShellProfileOutput
impl RefUnwindSafe for SyncShellProfileOutput
impl Send for SyncShellProfileOutput
impl Sync for SyncShellProfileOutput
impl Unpin for SyncShellProfileOutput
impl UnwindSafe for SyncShellProfileOutput
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