GoodMemGoodMem
ReferenceSdkRustTypes

UpdateServiceIdentityRequest

Rust struct goodmem::models::UpdateServiceIdentityRequest: declaration, fields or variants, and implementations.

All types

Struct UpdateServiceIdentityRequest

goodmem::models::UpdateServiceIdentityRequest

Updates explicitly present profile fields. Empty description clears it; omitted fields remain unchanged. Ownership is changed only through the transfer endpoint.

pub struct UpdateServiceIdentityRequest {
    pub display_name: Option<String>,
    pub description: Option<String>,
    pub replace_labels: Option<BTreeMap<String, String>>,
    pub merge_labels: Option<BTreeMap<String, String>>,
}

Fields

display_name

pub display_name: Option<String>

Replacement display name. A present blank value is invalid. Wire name: displayName.

description

pub description: Option<String>

Replacement description. An empty string clears the description. Wire name: description.

replace_labels

pub replace_labels: Option<BTreeMap<String, String>>

Complete replacement label map; an empty map clears all labels and is mutually exclusive with mergeLabels. At most 20 entries; keys and values contain at most 255 characters; keys use [a-z0-9._-]. Wire name: replaceLabels.

merge_labels

pub merge_labels: Option<BTreeMap<String, String>>

Labels to upsert; must contain at least one entry and is mutually exclusive with replaceLabels. The final stored map may contain at most 20 entries; keys and values contain at most 255 characters; keys use [a-z0-9._-]. Wire name: mergeLabels.

Implementations

validate

pub fn validate(&self) -> crate::Result<()>

Validate the request before sending, without making an HTTP call.

Trait implementations

  • Clone (derived)
  • Default (derived)
  • PartialEq (derived)
  • Serialize (derived)
  • impl<'de> Deserialize<'de> for UpdateServiceIdentityRequest
  • impl std::fmt::Debug for UpdateServiceIdentityRequest

On this page