Struct bollard::secret::TaskSpecResources
source · pub struct TaskSpecResources {
pub limits: Option<Limit>,
pub reservations: Option<ResourceObject>,
}
Expand description
Resource requirements which apply to each individual container created as part of the service.
Fields§
§limits: Option<Limit>
Define resources limits.
reservations: Option<ResourceObject>
Define resources reservation.
Trait Implementations§
source§impl Clone for TaskSpecResources
impl Clone for TaskSpecResources
source§fn clone(&self) -> TaskSpecResources
fn clone(&self) -> TaskSpecResources
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 Debug for TaskSpecResources
impl Debug for TaskSpecResources
source§impl Default for TaskSpecResources
impl Default for TaskSpecResources
source§fn default() -> TaskSpecResources
fn default() -> TaskSpecResources
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TaskSpecResources
impl<'de> Deserialize<'de> for TaskSpecResources
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaskSpecResources, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaskSpecResources, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for TaskSpecResources
impl PartialEq for TaskSpecResources
source§impl Serialize for TaskSpecResources
impl Serialize for TaskSpecResources
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TaskSpecResources
Auto Trait Implementations§
impl Freeze for TaskSpecResources
impl RefUnwindSafe for TaskSpecResources
impl Send for TaskSpecResources
impl Sync for TaskSpecResources
impl Unpin for TaskSpecResources
impl UnwindSafe for TaskSpecResources
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
)