pub struct ImportResult {
pub specs: Vec<WorkloadSpec>,
pub warnings: Vec<ImportWarning>,
}Expand description
Output of import_compose.
Serializable so the CLI can emit it as JSON and tests can compare against fixture snapshots without a bespoke equality codec.
Fields§
§specs: Vec<WorkloadSpec>One spec per compose service. Order matches the services: map’s
iteration order (sorted by service name for determinism).
warnings: Vec<ImportWarning>Soft warnings for lossy translations. Each carries a compose path so the operator can find the original block.
Trait Implementations§
Source§impl Clone for ImportResult
impl Clone for ImportResult
Source§fn clone(&self) -> ImportResult
fn clone(&self) -> ImportResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImportResult
impl Debug for ImportResult
Source§impl<'de> Deserialize<'de> for ImportResult
impl<'de> Deserialize<'de> for ImportResult
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
Source§impl PartialEq for ImportResult
impl PartialEq for ImportResult
Source§impl Serialize for ImportResult
impl Serialize for ImportResult
impl StructuralPartialEq for ImportResult
Auto Trait Implementations§
impl Freeze for ImportResult
impl RefUnwindSafe for ImportResult
impl Send for ImportResult
impl Sync for ImportResult
impl Unpin for ImportResult
impl UnsafeUnpin for ImportResult
impl UnwindSafe for ImportResult
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