pub struct CloudShellErrorCode(/* private fields */);Expand description
Set of possible errors returned from API calls.
Implementations§
Source§impl CloudShellErrorCode
impl CloudShellErrorCode
Sourcepub const CLOUD_SHELL_ERROR_CODE_UNSPECIFIED: CloudShellErrorCode
pub const CLOUD_SHELL_ERROR_CODE_UNSPECIFIED: CloudShellErrorCode
An unknown error occurred.
Sourcepub const IMAGE_UNAVAILABLE: CloudShellErrorCode
pub const IMAGE_UNAVAILABLE: CloudShellErrorCode
The image used by the Cloud Shell environment either does not exist or the user does not have access to it.
Sourcepub const CLOUD_SHELL_DISABLED: CloudShellErrorCode
pub const CLOUD_SHELL_DISABLED: CloudShellErrorCode
Cloud Shell has been disabled by an administrator for the user making the request.
Sourcepub const TOS_VIOLATION: CloudShellErrorCode
pub const TOS_VIOLATION: CloudShellErrorCode
Cloud Shell has been permanently disabled due to a Terms of Service violation by the user.
Sourcepub const QUOTA_EXCEEDED: CloudShellErrorCode
pub const QUOTA_EXCEEDED: CloudShellErrorCode
The user has exhausted their weekly Cloud Shell quota, and Cloud Shell will be disabled until the quota resets.
Sourcepub const ENVIRONMENT_UNAVAILABLE: CloudShellErrorCode
pub const ENVIRONMENT_UNAVAILABLE: CloudShellErrorCode
The Cloud Shell environment is unavailable and cannot be connected to at the moment.
Sourcepub fn as_str_name(&self) -> Cow<'static, str>
pub fn as_str_name(&self) -> Cow<'static, str>
Gets the enum value as a string.
Sourcepub fn from_str_name(name: &str) -> Option<Self>
pub fn from_str_name(name: &str) -> Option<Self>
Creates an enum value from the value name.
Trait Implementations§
Source§impl Clone for CloudShellErrorCode
impl Clone for CloudShellErrorCode
Source§fn clone(&self) -> CloudShellErrorCode
fn clone(&self) -> CloudShellErrorCode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CloudShellErrorCode
impl Debug for CloudShellErrorCode
Source§impl Default for CloudShellErrorCode
impl Default for CloudShellErrorCode
Source§impl<'de> Deserialize<'de> for CloudShellErrorCode
impl<'de> Deserialize<'de> for CloudShellErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 From<i32> for CloudShellErrorCode
impl From<i32> for CloudShellErrorCode
Source§impl PartialEq for CloudShellErrorCode
impl PartialEq for CloudShellErrorCode
Source§impl Serialize for CloudShellErrorCode
impl Serialize for CloudShellErrorCode
impl StructuralPartialEq for CloudShellErrorCode
Auto Trait Implementations§
impl Freeze for CloudShellErrorCode
impl RefUnwindSafe for CloudShellErrorCode
impl Send for CloudShellErrorCode
impl Sync for CloudShellErrorCode
impl Unpin for CloudShellErrorCode
impl UnwindSafe for CloudShellErrorCode
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
Mutably borrows from an owned value. Read more