GoodMemGoodMem
ReferenceSdkRustTypes

UpdateUserRequest

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

All types

Struct UpdateUserRequest

goodmem::models::UpdateUserRequest

Updates explicitly present profile fields. Empty username or displayName clears that optional field; an omitted field remains unchanged.

pub struct UpdateUserRequest {
    pub email: Option<String>,
    pub username: Option<String>,
    pub display_name: Option<String>,
    pub replace_labels: Option<BTreeMap<String, String>>,
    pub merge_labels: Option<BTreeMap<String, String>>,
}

Fields

email

pub email: Option<String>

Replacement email. A present empty value is invalid. Wire name: email.

username

pub username: Option<String>

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

display_name

pub display_name: Option<String>

Replacement display name. An empty string clears the display name. Wire name: displayName.

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 UpdateUserRequest
  • impl std::fmt::Debug for UpdateUserRequest

On this page