[][src]Struct google_compute1::MetadataItems

pub struct MetadataItems {
    pub key: Option<String>,
    pub value: Option<String>,
}

Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

This type is not used in any activity, and only used as part of another schema.

Fields

key: Option<String>

Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.

value: Option<String>

Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).

Trait Implementations

impl Part for MetadataItems[src]

impl NestedType for MetadataItems[src]

impl Clone for MetadataItems[src]

impl Default for MetadataItems[src]

impl Debug for MetadataItems[src]

impl Serialize for MetadataItems[src]

impl<'de> Deserialize<'de> for MetadataItems[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]