pub struct CreatePlan { /* private fields */ }Implementations§
Source§impl CreatePlan
impl CreatePlan
Sourcepub fn new(
name: String,
image: String,
labels: BTreeMap<String, String>,
port: Option<FixedPort>,
) -> Result<Self, &'static str>
pub fn new( name: String, image: String, labels: BTreeMap<String, String>, port: Option<FixedPort>, ) -> Result<Self, &'static str>
Image must already be a resolved local full ID. Labels must be the full merged image/operator map, derived elsewhere under protected provenance.
Sourcepub fn with_image_exposed_ports(
self,
ports: BTreeSet<String>,
) -> Result<Self, &'static str>
pub fn with_image_exposed_ports( self, ports: BTreeSet<String>, ) -> Result<Self, &'static str>
Carry reviewed image metadata without turning it into host mappings. Image inspection/provenance must supply this exact set at integration.
pub fn body(&self) -> Result<Vec<u8>, &'static str>
Sourcepub fn expected_from_response(
&self,
status: u16,
body: &[u8],
) -> Result<ExpectedContainer, &'static str>
pub fn expected_from_response( &self, status: u16, body: &[u8], ) -> Result<ExpectedContainer, &'static str>
Only the exact successful response supplies the ID. Failure must be retained as unknown by the future journal; never discover or retry by name.
Auto Trait Implementations§
impl Freeze for CreatePlan
impl RefUnwindSafe for CreatePlan
impl Send for CreatePlan
impl Sync for CreatePlan
impl Unpin for CreatePlan
impl UnsafeUnpin for CreatePlan
impl UnwindSafe for CreatePlan
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