pub struct Service {Show 22 fields
pub name: String,
pub dir: String,
pub language: Option<Language>,
pub runtime: Option<RuntimeInfo>,
pub framework: Option<String>,
pub package_manager: Option<PackageManagerInfo>,
pub language_config: Option<LanguageConfig>,
pub network: Option<Network>,
pub exec_mode: Option<ExecMode>,
pub commands: Commands,
pub image: Option<String>,
pub dockerfile: Option<String>,
pub output_dir: Option<String>,
pub env: Vec<EnvVar>,
pub system_deps: Vec<String>,
pub volumes: Vec<Volume>,
pub resources: Option<Resources>,
pub replicas: Option<u32>,
pub restart: Option<Restart>,
pub healthcheck: Option<String>,
pub schedule: Option<String>,
pub detected_by: Vec<String>,
}Fields§
§name: String§dir: String§language: Option<Language>§runtime: Option<RuntimeInfo>§framework: Option<String>§package_manager: Option<PackageManagerInfo>§language_config: Option<LanguageConfig>§network: Option<Network>§exec_mode: Option<ExecMode>§commands: Commands§image: Option<String>§dockerfile: Option<String>§output_dir: Option<String>§env: Vec<EnvVar>§system_deps: Vec<String>§volumes: Vec<Volume>§resources: Option<Resources>§replicas: Option<u32>§restart: Option<Restart>§healthcheck: Option<String>§schedule: Option<String>§detected_by: Vec<String>Implementations§
Source§impl Service
impl Service
Sourcepub fn layer_context(&mut self, ctx: &DirContext)
pub fn layer_context(&mut self, ctx: &DirContext)
Fill None fields from directory context. Service fields win. Env vars are merged: service vars kept, context vars added if key not present.
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more