pub struct ContainerId(/* private fields */);
Expand description
A container id
The id is a SHA-252 represented as 32 bytes array.
Therefore this type is Copy
.
Note because some version of Docker CLI return truncated value, we need to store the size of the id.
Most usage of this type is done with the string representation.
Note that the Display
view truncate the id,
to have the full String
you need to use the Into
or From
implementation.
Trait Implementations§
Source§impl Clone for ContainerId
impl Clone for ContainerId
Source§fn clone(&self) -> ContainerId
fn clone(&self) -> ContainerId
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 ContainerId
impl Debug for ContainerId
Source§impl Deref for ContainerId
impl Deref for ContainerId
Source§impl<'de> Deserialize<'de> for ContainerId
impl<'de> Deserialize<'de> for ContainerId
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 Display for ContainerId
impl Display for ContainerId
Source§impl From<ContainerId> for Network
impl From<ContainerId> for Network
Source§fn from(value: ContainerId) -> Self
fn from(value: ContainerId) -> Self
Converts to this type from the input type.
Source§impl From<ContainerId> for String
impl From<ContainerId> for String
Source§fn from(value: ContainerId) -> Self
fn from(value: ContainerId) -> Self
Converts to this type from the input type.
Source§impl FromStr for ContainerId
impl FromStr for ContainerId
Source§impl Hash for ContainerId
impl Hash for ContainerId
Source§impl PartialEq for ContainerId
impl PartialEq for ContainerId
Source§impl Serialize for ContainerId
impl Serialize for ContainerId
impl Copy for ContainerId
impl Eq for ContainerId
impl StructuralPartialEq for ContainerId
Auto Trait Implementations§
impl Freeze for ContainerId
impl RefUnwindSafe for ContainerId
impl Send for ContainerId
impl Sync for ContainerId
impl Unpin for ContainerId
impl UnwindSafe for ContainerId
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.