pub struct Case {
Show 16 fields pub classification: Option<CaseClassification>, pub contact_email: Option<String>, pub create_time: Option<DateTime<Utc>>, pub creator: Option<Actor>, pub description: Option<String>, pub display_name: Option<String>, pub escalated: Option<bool>, pub language_code: Option<String>, pub name: Option<String>, pub priority: Option<String>, pub severity: Option<String>, pub state: Option<String>, pub subscriber_email_addresses: Option<Vec<String>>, pub test_case: Option<bool>, pub time_zone: Option<String>, pub update_time: Option<DateTime<Utc>>,
}
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/456 Projects have two unique identifiers, an ID and a number, and they look like this: projects/abc/cases/456 projects/123/cases/456 You can use either of them when calling the API. To learn more about project identifiers, see AIP-2510.

§Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields§

§classification: Option<CaseClassification>

The issue classification applicable to this case.

§contact_email: Option<String>

A 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.

§create_time: Option<DateTime<Utc>>

Output only. The time this case was created.

§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.

§description: Option<String>

A broad description of the issue.

§display_name: Option<String>

The short summary of the issue reported in this case.

§escalated: Option<bool>

Whether the case is currently escalated.

§language_code: Option<String>

The 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

§name: Option<String>

The resource name for the case.

§priority: Option<String>

The priority of this case.

§severity: Option<String>

REMOVED. The severity of this case. Use priority instead.

§state: Option<String>

Output only. The current status of the support case.

§subscriber_email_addresses: Option<Vec<String>>

The email addresses to receive updates on this case.

§test_case: Option<bool>

Whether this case was created for internal API testing and should not be acted on by the support team.

§time_zone: Option<String>

The 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.

§update_time: Option<DateTime<Utc>>

Output only. The time this case was last updated.

Trait Implementations§

source§

impl Clone for Case

source§

fn clone(&self) -> Case

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Case

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Case

source§

fn default() -> Case

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Case

source§

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 Serialize for Case

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl RequestValue for Case

source§

impl Resource for Case

source§

impl ResponseResult for Case

Auto Trait Implementations§

§

impl RefUnwindSafe for Case

§

impl Send for Case

§

impl Sync for Case

§

impl Unpin for Case

§

impl UnwindSafe for Case

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,