pub struct Service {Show 16 fields
pub name: String,
pub dir: String,
pub runtimes: Vec<Runtime>,
pub network: Option<Network>,
pub exec_mode: Option<ExecMode>,
pub image: Option<String>,
pub dockerfile: 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§runtimes: Vec<Runtime>§network: Option<Network>§exec_mode: Option<ExecMode>§image: Option<String>§dockerfile: 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 output_dir(&self) -> Option<&str>
pub fn output_dir(&self) -> Option<&str>
Primary output directory.
Sourcepub fn layer_contexts(&mut self, contexts: &[DirContext])
pub fn layer_contexts(&mut self, contexts: &[DirContext])
Layer DirContexts onto this service, converting each to a Runtime. Service’s existing runtimes win per language group.
Sourcepub fn sort_runtimes(&mut self)
pub fn sort_runtimes(&mut self)
Sort runtimes: non-JS/TS backends first, JS/TS last.
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