CreateServiceIdentityRequest
Rust struct goodmem::models::CreateServiceIdentityRequest: declaration, fields or variants, and implementations.
Struct CreateServiceIdentityRequest
goodmem::models::CreateServiceIdentityRequest
Creates a service identity owned by the authenticated human. It does not create credentials, roles, or grants.
pub struct CreateServiceIdentityRequest {
pub service_identity_id: Option<String>,
pub display_name: String,
pub description: Option<String>,
pub labels: Option<BTreeMap<String, String>>,
}Fields
service_identity_id
pub service_identity_id: Option<String>
Optional client-provided UUID; generated by the server when omitted.
Wire name: serviceIdentityId.
display_name
pub display_name: String
Globally unique, nonblank operator-facing name.
Wire name: displayName.
description
pub description: Option<String>
Optional operator description.
Wire name: description.
labels
pub labels: Option<BTreeMap<String, String>>
Optional labels for organization and filtering. At most 20 entries; keys and values contain at most 255 characters; keys use [a-z0-9._-].
Wire name: labels.
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 CreateServiceIdentityRequestimpl std::fmt::Debug for CreateServiceIdentityRequest