pub struct ClusterType {
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub display: Option<String>,
pub name: String,
pub slug: String,
pub description: Option<String>,
pub tags: Option<Vec<NestedTag>>,
pub custom_fields: Option<HashMap<String, Value>>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
pub cluster_count: Option<i64>,
}Expand description
ClusterType : Adds support for custom fields and tags.
Fields§
§id: Option<i32>§url: Option<String>§display_url: Option<String>§display: Option<String>§name: String§slug: String§description: Option<String>§custom_fields: Option<HashMap<String, Value>>§created: Option<Option<String>>§last_updated: Option<Option<String>>§cluster_count: Option<i64>Implementations§
Source§impl ClusterType
impl ClusterType
Sourcepub fn new(name: String, slug: String) -> ClusterType
pub fn new(name: String, slug: String) -> ClusterType
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for ClusterType
impl Clone for ClusterType
Source§fn clone(&self) -> ClusterType
fn clone(&self) -> ClusterType
Returns a duplicate 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 ClusterType
impl Debug for ClusterType
Source§impl Default for ClusterType
impl Default for ClusterType
Source§fn default() -> ClusterType
fn default() -> ClusterType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClusterType
impl<'de> Deserialize<'de> for ClusterType
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 PartialEq for ClusterType
impl PartialEq for ClusterType
Source§impl Serialize for ClusterType
impl Serialize for ClusterType
impl StructuralPartialEq for ClusterType
Auto Trait Implementations§
impl Freeze for ClusterType
impl RefUnwindSafe for ClusterType
impl Send for ClusterType
impl Sync for ClusterType
impl Unpin for ClusterType
impl UnwindSafe for ClusterType
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