Struct google_compute1::api::MetadataItems
source · pub struct MetadataItems {
pub key: Option<String>,
pub value: Option<String>,
}
Expand description
Metadata
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§
source§impl Clone for MetadataItems
impl Clone for MetadataItems
source§fn clone(&self) -> MetadataItems
fn clone(&self) -> MetadataItems
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 MetadataItems
impl Debug for MetadataItems
source§impl Default for MetadataItems
impl Default for MetadataItems
source§fn default() -> MetadataItems
fn default() -> MetadataItems
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MetadataItems
impl<'de> Deserialize<'de> for MetadataItems
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 Serialize for MetadataItems
impl Serialize for MetadataItems
impl NestedType for MetadataItems
impl Part for MetadataItems
Auto Trait Implementations§
impl RefUnwindSafe for MetadataItems
impl Send for MetadataItems
impl Sync for MetadataItems
impl Unpin for MetadataItems
impl UnwindSafe for MetadataItems
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