pub struct ComposeFile {
pub version: Option<String>,
pub version_pos: Option<Position>,
pub name: Option<String>,
pub name_pos: Option<Position>,
pub services: HashMap<String, Service>,
pub services_pos: Option<Position>,
pub networks: HashMap<String, Value>,
pub volumes: HashMap<String, Value>,
pub configs: HashMap<String, Value>,
pub secrets: HashMap<String, Value>,
pub top_level_keys: Vec<String>,
pub source: String,
}Expand description
Parsed Docker Compose file.
Fields§
§version: Option<String>The deprecated version field.
version_pos: Option<Position>Position of the version field.
name: Option<String>The name field (project name).
name_pos: Option<Position>Position of the name field.
services: HashMap<String, Service>Services defined in the compose file.
services_pos: Option<Position>Position of the services section.
networks: HashMap<String, Value>Networks defined in the compose file.
volumes: HashMap<String, Value>Volumes defined in the compose file.
configs: HashMap<String, Value>Configs defined in the compose file.
secrets: HashMap<String, Value>Secrets defined in the compose file.
top_level_keys: Vec<String>Top-level key order (for ordering rules).
source: StringRaw source content for position lookups.
Trait Implementations§
Source§impl Clone for ComposeFile
impl Clone for ComposeFile
Source§fn clone(&self) -> ComposeFile
fn clone(&self) -> ComposeFile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComposeFile
impl Debug for ComposeFile
Source§impl Default for ComposeFile
impl Default for ComposeFile
Source§fn default() -> ComposeFile
fn default() -> ComposeFile
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComposeFile
impl RefUnwindSafe for ComposeFile
impl Send for ComposeFile
impl Sync for ComposeFile
impl Unpin for ComposeFile
impl UnwindSafe for ComposeFile
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreCreates a shared type from an unshared type.