pub struct Devbox {
pub id: String,
}
Fields§
§id: String
Implementations§
Source§impl Devbox
impl Devbox
pub fn with_exec(&self, args: Vec<&str>) -> Result<Devbox, Error>
pub fn with_workdir(&self, path: &str) -> Result<Devbox, Error>
pub fn with_cache(&self, path: &str, cache_id: &str) -> Result<Devbox, Error>
pub fn with_file(&self, path: &str, file_id: &str) -> Result<Devbox, Error>
pub fn stdout(&self) -> Result<String, Error>
pub fn stderr(&self) -> Result<String, Error>
pub fn as_service(&self, name: &str) -> Result<String, Error>
pub fn with_service(&self, service_id: &str) -> Result<Devbox, Error>
pub fn with_env_variable( &self, name: &str, value: &str, ) -> Result<Devbox, Error>
pub fn wait_on(&self, port: u32, timeout: Option<u32>) -> Result<Devbox, Error>
pub fn with_secret_variable( &self, name: &str, secret_id: &str, ) -> Result<Devbox, Error>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Devbox
impl<'de> Deserialize<'de> for Devbox
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 Devbox
impl RefUnwindSafe for Devbox
impl Send for Devbox
impl Sync for Devbox
impl Unpin for Devbox
impl UnwindSafe for Devbox
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