#[non_exhaustive]pub struct Case {Show 15 fields
pub name: String,
pub display_name: String,
pub description: String,
pub classification: Option<CaseClassification>,
pub time_zone: String,
pub subscriber_email_addresses: Vec<String>,
pub state: State,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub creator: Option<Actor>,
pub contact_email: String,
pub escalated: bool,
pub test_case: bool,
pub language_code: String,
pub priority: Priority,
/* private fields */
}Expand description
A Case is an object that contains the details of a support case. It contains fields for the time it was created, its priority, its classification, and more. Cases can also have comments and attachments that get added over time.
A case is parented by a Google Cloud organization or project.
Organizations are identified by a number, so the name of a case parented by an organization would look like this:
organizations/123/cases/456Projects have two unique identifiers, an ID and a number, and they look like this:
projects/abc/cases/456projects/123/cases/456You can use either of them when calling the API. To learn more about project identifiers, see AIP-2510.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringIdentifier. The resource name for the case.
display_name: StringThe short summary of the issue reported in this case.
description: StringA broad description of the issue.
classification: Option<CaseClassification>The issue classification applicable to this case.
time_zone: StringThe timezone of the user who created the support case. It should be in a format IANA recognizes: https://www.iana.org/time-zones. There is no additional validation done by the API.
subscriber_email_addresses: Vec<String>The email addresses to receive updates on this case.
state: StateOutput only. The current status of the support case.
create_time: Option<Timestamp>Output only. The time this case was created.
update_time: Option<Timestamp>Output only. The time this case was last updated.
creator: Option<Actor>The user who created the case.
Note: The name and email will be obfuscated if the case was created by Google Support.
contact_email: StringA user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user’s email address directly from their EUCs.
escalated: boolWhether the case is currently escalated.
test_case: boolWhether this case was created for internal API testing and should not be acted on by the support team.
language_code: StringThe language the user has requested to receive support in. This should be a
BCP 47 language code (e.g., "en", "zh-CN", "zh-TW", "ja", "ko").
If no language or an unsupported language is specified, this field defaults
to English (en).
Language selection during case creation may affect your available support options. For a list of supported languages and their support working hours, see: https://cloud.google.com/support/docs/language-working-hours
priority: PriorityThe priority of this case.
Implementations§
Source§impl Case
impl Case
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_classification<T>(self, v: T) -> Selfwhere
T: Into<CaseClassification>,
pub fn set_classification<T>(self, v: T) -> Selfwhere
T: Into<CaseClassification>,
Sets the value of classification.
§Example
use google_cloud_support_v2::model::CaseClassification;
let x = Case::new().set_classification(CaseClassification::default()/* use setters */);Sourcepub fn set_or_clear_classification<T>(self, v: Option<T>) -> Selfwhere
T: Into<CaseClassification>,
pub fn set_or_clear_classification<T>(self, v: Option<T>) -> Selfwhere
T: Into<CaseClassification>,
Sets or clears the value of classification.
§Example
use google_cloud_support_v2::model::CaseClassification;
let x = Case::new().set_or_clear_classification(Some(CaseClassification::default()/* use setters */));
let x = Case::new().set_or_clear_classification(None::<CaseClassification>);Sourcepub fn set_time_zone<T: Into<String>>(self, v: T) -> Self
pub fn set_time_zone<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_subscriber_email_addresses<T, V>(self, v: T) -> Self
pub fn set_subscriber_email_addresses<T, V>(self, v: T) -> Self
Sets the value of subscriber_email_addresses.
§Example
let x = Case::new().set_subscriber_email_addresses(["a", "b", "c"]);Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = Case::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = Case::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = Case::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
use wkt::Timestamp;
let x = Case::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
use wkt::Timestamp;
let x = Case::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = Case::new().set_or_clear_update_time(None::<Timestamp>);