Struct digitalocean::api::Tag
source · pub struct Tag { /* private fields */ }
Expand description
A Tag is a label that can be applied to a resource (currently only Droplets) in order to better organize or facilitate the lookups and actions on it.
Tags have two attributes: a user defined name attribute and an embedded resources attribute with information about resources that have been tagged.
Implementations§
source§impl Tag
impl Tag
sourcepub fn create<S>(name: S) -> TagRequest<Create, Tag>where
S: AsRef<str> + Serialize + Display,
pub fn create<S>(name: S) -> TagRequest<Create, Tag>where
S: AsRef<str> + Serialize + Display,
sourcepub fn list() -> TagRequest<List, Tag>
pub fn list() -> TagRequest<List, Tag>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Tag
impl<'de> Deserialize<'de> for Tag
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