pub struct OciImageConfig { /* private fields */ }Expand description
OCI image config primitives.
Implementations§
Source§impl OciImageConfig
impl OciImageConfig
Sourcepub fn with_user(self, user: ConfigUser) -> Self
pub fn with_user(self, user: ConfigUser) -> Self
Adds a user label.
Sourcepub fn with_entrypoint(self, entrypoint: Entrypoint) -> Self
pub fn with_entrypoint(self, entrypoint: Entrypoint) -> Self
Adds an entrypoint part.
Sourcepub fn with_command(self, command: Command) -> Self
pub fn with_command(self, command: Command) -> Self
Adds a command part.
Sourcepub fn with_exposed_port(self, port: ExposedPort) -> Self
pub fn with_exposed_port(self, port: ExposedPort) -> Self
Adds an exposed port.
Sourcepub fn with_annotation(self, annotation: Annotation) -> Self
pub fn with_annotation(self, annotation: Annotation) -> Self
Adds an annotation.
Sourcepub const fn architecture(&self) -> &OciArchitecture
pub const fn architecture(&self) -> &OciArchitecture
Returns the architecture label.
Sourcepub fn annotations(&self) -> &[Annotation]
pub fn annotations(&self) -> &[Annotation]
Returns annotations.
Trait Implementations§
Source§impl Clone for OciImageConfig
impl Clone for OciImageConfig
Source§fn clone(&self) -> OciImageConfig
fn clone(&self) -> OciImageConfig
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 OciImageConfig
impl Debug for OciImageConfig
Source§impl PartialEq for OciImageConfig
impl PartialEq for OciImageConfig
impl Eq for OciImageConfig
impl StructuralPartialEq for OciImageConfig
Auto Trait Implementations§
impl Freeze for OciImageConfig
impl RefUnwindSafe for OciImageConfig
impl Send for OciImageConfig
impl Sync for OciImageConfig
impl Unpin for OciImageConfig
impl UnsafeUnpin for OciImageConfig
impl UnwindSafe for OciImageConfig
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