#[repr(i32)]pub enum ImportErrorCode {
ImportErrorUnspecified = 0,
ImportErrorInvalidSource = 1,
ImportErrorSourceNotAllowed = 2,
ImportErrorAuthFailed = 3,
ImportErrorNotFound = 4,
ImportErrorTooLarge = 5,
ImportErrorTimedOut = 6,
ImportErrorInternal = 7,
}Expand description
Stable import failure codes from the hosted import operation model.
Variants§
ImportErrorUnspecified = 0
ImportErrorInvalidSource = 1
ImportErrorSourceNotAllowed = 2
ImportErrorAuthFailed = 3
ImportErrorNotFound = 4
ImportErrorTooLarge = 5
ImportErrorTimedOut = 6
ImportErrorInternal = 7
Implementations§
Source§impl ImportErrorCode
impl ImportErrorCode
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ImportErrorCode
impl Clone for ImportErrorCode
Source§fn clone(&self) -> ImportErrorCode
fn clone(&self) -> ImportErrorCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ImportErrorCode
Source§impl Debug for ImportErrorCode
impl Debug for ImportErrorCode
Source§impl Default for ImportErrorCode
impl Default for ImportErrorCode
Source§fn default() -> ImportErrorCode
fn default() -> ImportErrorCode
Returns the “default value” for a type. Read more
impl Eq for ImportErrorCode
Source§impl From<ImportErrorCode> for i32
impl From<ImportErrorCode> for i32
Source§fn from(value: ImportErrorCode) -> i32
fn from(value: ImportErrorCode) -> i32
Converts to this type from the input type.
Source§impl Hash for ImportErrorCode
impl Hash for ImportErrorCode
Source§impl Ord for ImportErrorCode
impl Ord for ImportErrorCode
Source§fn cmp(&self, other: &ImportErrorCode) -> Ordering
fn cmp(&self, other: &ImportErrorCode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ImportErrorCode
impl PartialEq for ImportErrorCode
Source§impl PartialOrd for ImportErrorCode
impl PartialOrd for ImportErrorCode
impl StructuralPartialEq for ImportErrorCode
Source§impl TryFrom<i32> for ImportErrorCode
impl TryFrom<i32> for ImportErrorCode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ImportErrorCode, UnknownEnumValue>
fn try_from(value: i32) -> Result<ImportErrorCode, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ImportErrorCode
impl RefUnwindSafe for ImportErrorCode
impl Send for ImportErrorCode
impl Sync for ImportErrorCode
impl Unpin for ImportErrorCode
impl UnsafeUnpin for ImportErrorCode
impl UnwindSafe for ImportErrorCode
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