pub struct CustomProfileEntry {
pub description: Option<String>,
pub network: Option<NetworkConfig>,
pub filesystem: Option<FilesystemConfig>,
pub env: Option<EnvConfig>,
}Expand description
A custom profile entry from profiles.toml (dotted key format).
[my-profile]
description = "My custom profile"
network.allow = ["example.com"]
filesystem.deny_read = ["~/.aws"]
env.scrub = ["*_KEY"]
env.pass = ["PATH"]Fields§
§description: Option<String>§network: Option<NetworkConfig>§filesystem: Option<FilesystemConfig>§env: Option<EnvConfig>Implementations§
Source§impl CustomProfileEntry
impl CustomProfileEntry
Sourcepub fn into_profile(self, name: &str) -> Profile
pub fn into_profile(self, name: &str) -> Profile
Convert to a standard Profile.
Trait Implementations§
Source§impl Clone for CustomProfileEntry
impl Clone for CustomProfileEntry
Source§fn clone(&self) -> CustomProfileEntry
fn clone(&self) -> CustomProfileEntry
Returns a duplicate 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 CustomProfileEntry
impl Debug for CustomProfileEntry
Source§impl Default for CustomProfileEntry
impl Default for CustomProfileEntry
Source§fn default() -> CustomProfileEntry
fn default() -> CustomProfileEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CustomProfileEntry
impl<'de> Deserialize<'de> for CustomProfileEntry
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 CustomProfileEntry
impl RefUnwindSafe for CustomProfileEntry
impl Send for CustomProfileEntry
impl Sync for CustomProfileEntry
impl Unpin for CustomProfileEntry
impl UnsafeUnpin for CustomProfileEntry
impl UnwindSafe for CustomProfileEntry
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