pub struct ServiceTaskSpecResources {
pub limits: Box<Option<ServiceTaskSpecResourcesLimits>>,
pub reservation: Box<Option<ServiceTaskSpecResourcesReservation>>,
}
Fields§
§limits: Box<Option<ServiceTaskSpecResourcesLimits>>
Describes the resources which can be advertised by a node and requested by a task
reservation: Box<Option<ServiceTaskSpecResourcesReservation>>
An object describing the resources which can be advertised by a node and requested by a task
Implementations§
source§impl ServiceTaskSpecResources
impl ServiceTaskSpecResources
sourcepub fn builder() -> ServiceTaskSpecResourcesBuilder
pub fn builder() -> ServiceTaskSpecResourcesBuilder
Create an instance of ServiceTaskSpecResources
using the builder syntax
Trait Implementations§
source§impl Debug for ServiceTaskSpecResources
impl Debug for ServiceTaskSpecResources
source§impl<'de> Deserialize<'de> for ServiceTaskSpecResources
impl<'de> Deserialize<'de> for ServiceTaskSpecResources
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
Auto Trait Implementations§
impl Freeze for ServiceTaskSpecResources
impl RefUnwindSafe for ServiceTaskSpecResources
impl Send for ServiceTaskSpecResources
impl Sync for ServiceTaskSpecResources
impl Unpin for ServiceTaskSpecResources
impl UnwindSafe for ServiceTaskSpecResources
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