pub struct Service {
pub hostname: String,
pub image: String,
pub ports: Vec<String>,
pub tty: bool,
pub environment: HashMap<String, String>,
pub env_file: Vec<String>,
pub networks: Vec<String>,
pub volumes: Vec<ServiceVolume>,
pub depends_on: Vec<String>,
pub restart: String,
}
Expand description
Struct for service
Fields§
§hostname: String
§image: String
§ports: Vec<String>
§tty: bool
§environment: HashMap<String, String>
§env_file: Vec<String>
§networks: Vec<String>
§volumes: Vec<ServiceVolume>
§depends_on: Vec<String>
§restart: String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Service
impl<'de> Deserialize<'de> for Service
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 Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnwindSafe for Service
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