pub struct GetenvArgs {
pub key: String,
pub default: MontyObject,
}Expand description
os.getenv(key, default=None) shape. The host decides whether to
substitute default when the variable is unset.
Fields§
§key: String§default: MontyObjectTrait Implementations§
Source§impl Clone for GetenvArgs
impl Clone for GetenvArgs
Source§fn clone(&self) -> GetenvArgs
fn clone(&self) -> GetenvArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GetenvArgs
impl Debug for GetenvArgs
Source§impl<'de> Deserialize<'de> for GetenvArgs
impl<'de> Deserialize<'de> for GetenvArgs
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 Serialize for GetenvArgs
impl Serialize for GetenvArgs
Source§impl ToArgs for GetenvArgs
impl ToArgs for GetenvArgs
fn to_args(self) -> (Vec<MontyObject>, Vec<(MontyObject, MontyObject)>)
Auto Trait Implementations§
impl Freeze for GetenvArgs
impl RefUnwindSafe for GetenvArgs
impl Send for GetenvArgs
impl Sync for GetenvArgs
impl Unpin for GetenvArgs
impl UnsafeUnpin for GetenvArgs
impl UnwindSafe for GetenvArgs
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