pub struct ComposeExporter { /* private fields */ }Expand description
Loss-aware exporter for deterministic, parse-back-validated Compose YAML.
Implementations§
Source§impl ComposeExporter
impl ComposeExporter
Sourcepub fn new() -> Result<Self, InvalidDiagnosticCode>
pub fn new() -> Result<Self, InvalidDiagnosticCode>
Creates an exporter with no assumed backend runtime.
§Errors
Returns InvalidDiagnosticCode only when an embedded stable code is malformed.
Sourcepub const fn with_runtime(self, runtime: ComposeRuntime) -> Self
pub const fn with_runtime(self, runtime: ComposeRuntime) -> Self
Attaches the exact backend runtime selected by the caller.
Sourcepub const fn runtime(&self) -> Option<ComposeRuntime>
pub const fn runtime(&self) -> Option<ComposeRuntime>
Returns the explicitly selected backend runtime, when present.
Trait Implementations§
Source§impl Clone for ComposeExporter
impl Clone for ComposeExporter
Source§fn clone(&self) -> ComposeExporter
fn clone(&self) -> ComposeExporter
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 ComposeExporter
impl Debug for ComposeExporter
Source§impl ExportAdapter for ComposeExporter
impl ExportAdapter for ComposeExporter
Source§type Output = GeneratedComposeDocument
type Output = GeneratedComposeDocument
Native target candidate returned by this adapter.
Source§fn plan(
&self,
application: &Application,
target: &TargetProfile,
) -> Result<ConversionPlan<Self::Output>, PlanError>
fn plan( &self, application: &Application, target: &TargetProfile, ) -> Result<ConversionPlan<Self::Output>, PlanError>
Builds a validated candidate plan for the explicit target profile. Read more
Auto Trait Implementations§
impl Freeze for ComposeExporter
impl RefUnwindSafe for ComposeExporter
impl Send for ComposeExporter
impl Sync for ComposeExporter
impl Unpin for ComposeExporter
impl UnsafeUnpin for ComposeExporter
impl UnwindSafe for ComposeExporter
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