Struct proto_pdk::SyncShellProfileOutput
source · pub struct SyncShellProfileOutput {
pub check_var: String,
pub export_vars: Option<HashMap<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: StringAn environment variable to check for in the shell profile. If the variable exists, injecting path and exports will be avoided.
export_vars: Option<HashMap<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: boolWhether 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<SyncShellProfileOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<SyncShellProfileOutput, <__D as Deserializer<'de>>::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
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for SyncShellProfileOutput
impl StructuralEq for SyncShellProfileOutput
impl StructuralPartialEq for SyncShellProfileOutput
Auto Trait Implementations§
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more