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: i32,
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: i32,
}
Expand description
A support case.
Fields§
§name: String
The resource name for the case.
display_name: String
The short summary of the issue reported in this case.
description: String
A broad description of the issue.
classification: Option<CaseClassification>
The issue classification applicable to this case.
time_zone: 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.
subscriber_email_addresses: Vec<String>
The email addresses to receive updates on this case.
state: i32
Output 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: 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.
escalated: bool
Whether the case is currently escalated.
test_case: bool
Whether this case was created for internal API testing and should not be acted on by the support team.
language_code: 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
priority: i32
The priority of this case.
Implementations§
source§impl Case
impl Case
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn priority(&self) -> Priority
pub fn priority(&self) -> Priority
Returns the enum value of priority
, or the default if the field is set to an invalid enum value.
sourcepub fn set_priority(&mut self, value: Priority)
pub fn set_priority(&mut self, value: Priority)
Sets priority
to the provided enum value.
Trait Implementations§
source§impl Message for Case
impl Message for Case
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Case
impl PartialEq for Case
impl StructuralPartialEq for Case
Auto Trait Implementations§
impl Freeze for Case
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request