pub struct Env {
pub name: String,
pub variables: Variables,
pub headers: Headers,
}
Fields§
§name: String
§variables: Variables
§headers: Headers
Implementations§
Source§impl Env
impl Env
pub fn new(name: &str) -> Self
pub fn dir(&self, ctx: &Ctx) -> PathBuf
pub fn write(&self, ctx: &Ctx) -> Result<(), Box<dyn Error>>
pub fn update(&self, ctx: &Ctx) -> Result<(), Box<dyn Error>>
Sourcepub fn exists(&self, ctx: &Ctx) -> bool
pub fn exists(&self, ctx: &Ctx) -> bool
Returns true
if this environment already exists on the quartz project.
pub fn parse(ctx: &Ctx, name: &str) -> Result<Self, Box<dyn Error>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Env
impl<'de> Deserialize<'de> for Env
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 Env
impl RefUnwindSafe for Env
impl Send for Env
impl Sync for Env
impl Unpin for Env
impl UnwindSafe for Env
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