Struct bollard::container::CreateContainerOptions
source · pub struct CreateContainerOptions<T>{
pub name: T,
pub platform: Option<T>,
}
Expand description
Parameters used in the Create Container API
§Examples
use bollard::container::CreateContainerOptions;
CreateContainerOptions{
name: "my-new-container",
platform: Some("linux/amd64"),
};
Fields§
§name: T
Assign the specified name to the container.
platform: Option<T>
The platform to use for the container. Added in API v1.41.
Trait Implementations§
source§impl<T> Clone for CreateContainerOptions<T>
impl<T> Clone for CreateContainerOptions<T>
source§fn clone(&self) -> CreateContainerOptions<T>
fn clone(&self) -> CreateContainerOptions<T>
Returns a copy 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<T> Debug for CreateContainerOptions<T>
impl<T> Debug for CreateContainerOptions<T>
source§impl<T> Default for CreateContainerOptions<T>
impl<T> Default for CreateContainerOptions<T>
source§fn default() -> CreateContainerOptions<T>
fn default() -> CreateContainerOptions<T>
Returns the “default value” for a type. Read more
source§impl<T> PartialEq for CreateContainerOptions<T>
impl<T> PartialEq for CreateContainerOptions<T>
source§impl<T> Serialize for CreateContainerOptions<T>
impl<T> Serialize for CreateContainerOptions<T>
impl<T> StructuralPartialEq for CreateContainerOptions<T>
Auto Trait Implementations§
impl<T> Freeze for CreateContainerOptions<T>where
T: Freeze,
impl<T> RefUnwindSafe for CreateContainerOptions<T>where
T: RefUnwindSafe,
impl<T> Send for CreateContainerOptions<T>where
T: Send,
impl<T> Sync for CreateContainerOptions<T>where
T: Sync,
impl<T> Unpin for CreateContainerOptions<T>where
T: Unpin,
impl<T> UnwindSafe for CreateContainerOptions<T>where
T: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)