Struct rusoto_ecs::Resource [] [src]

pub struct Resource {
    pub double_value: Option<f64>,
    pub integer_value: Option<i64>,
    pub long_value: Option<i64>,
    pub name: Option<String>,
    pub string_set_value: Option<Vec<String>>,
    pub type_: Option<String>,
}

Describes the resources available for a container instance.

Fields

When the doubleValue type is set, the value of the resource must be a double precision floating-point type.

When the integerValue type is set, the value of the resource must be an integer.

When the longValue type is set, the value of the resource must be an extended precision floating-point type.

The name of the resource, such as cpu, memory, ports, or a user-defined resource.

When the stringSetValue type is set, the value of the resource must be a string type.

The type of the resource, such as INTEGER, DOUBLE, LONG, or STRINGSET.

Trait Implementations

impl Default for Resource
[src]

[src]

Returns the "default value" for a type. Read more

impl Debug for Resource
[src]

[src]

Formats the value using the given formatter.

impl Clone for Resource
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more