#[repr(i32)]pub enum ProfileErrorCode {
PROFILE_UNSPECIFIED = 0,
PROFILE_INVALID_FIELD = 1,
PROFILE_FIELD_TOO_LONG = 2,
PROFILE_URL_INVALID = 3,
PROFILE_URL_SCHEME_INVALID = 4,
}Expand description
— Typed errors for ProfileService —
High-level error codes for profile domain errors (ProfileService).
Variants§
PROFILE_UNSPECIFIED = 0
No profile error code specified.
PROFILE_INVALID_FIELD = 1
Generic invalid field (format/characters).
PROFILE_FIELD_TOO_LONG = 2
Field exceeds configured max length.
PROFILE_URL_INVALID = 3
URL is syntactically invalid.
PROFILE_URL_SCHEME_INVALID = 4
URL scheme is not allowed (e.g., non-http(s)).
Implementations§
Source§impl ProfileErrorCode
impl ProfileErrorCode
Sourcepub const ProfileUnspecified: Self = Self::PROFILE_UNSPECIFIED
pub const ProfileUnspecified: Self = Self::PROFILE_UNSPECIFIED
Idiomatic alias for Self::PROFILE_UNSPECIFIED; Debug prints the variant name.
Sourcepub const ProfileInvalidField: Self = Self::PROFILE_INVALID_FIELD
pub const ProfileInvalidField: Self = Self::PROFILE_INVALID_FIELD
Idiomatic alias for Self::PROFILE_INVALID_FIELD; Debug prints the variant name.
Sourcepub const ProfileFieldTooLong: Self = Self::PROFILE_FIELD_TOO_LONG
pub const ProfileFieldTooLong: Self = Self::PROFILE_FIELD_TOO_LONG
Idiomatic alias for Self::PROFILE_FIELD_TOO_LONG; Debug prints the variant name.
Sourcepub const ProfileUrlInvalid: Self = Self::PROFILE_URL_INVALID
pub const ProfileUrlInvalid: Self = Self::PROFILE_URL_INVALID
Idiomatic alias for Self::PROFILE_URL_INVALID; Debug prints the variant name.
Sourcepub const ProfileUrlSchemeInvalid: Self = Self::PROFILE_URL_SCHEME_INVALID
pub const ProfileUrlSchemeInvalid: Self = Self::PROFILE_URL_SCHEME_INVALID
Idiomatic alias for Self::PROFILE_URL_SCHEME_INVALID; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for ProfileErrorCode
impl Clone for ProfileErrorCode
Source§fn clone(&self) -> ProfileErrorCode
fn clone(&self) -> ProfileErrorCode
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 ProfileErrorCode
Source§impl Debug for ProfileErrorCode
impl Debug for ProfileErrorCode
Source§impl Default for ProfileErrorCode
impl Default for ProfileErrorCode
Source§impl<'de> Deserialize<'de> for ProfileErrorCode
impl<'de> Deserialize<'de> for ProfileErrorCode
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Enumeration for ProfileErrorCode
impl Enumeration for ProfileErrorCode
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.impl Eq for ProfileErrorCode
Source§impl Hash for ProfileErrorCode
impl Hash for ProfileErrorCode
Source§impl PartialEq for ProfileErrorCode
impl PartialEq for ProfileErrorCode
Source§impl ProtoElemJson for ProfileErrorCode
impl ProtoElemJson for ProfileErrorCode
Source§fn serialize_proto_json<S: Serializer>(
v: &Self,
s: S,
) -> Result<S::Ok, S::Error>
fn serialize_proto_json<S: Serializer>( v: &Self, s: S, ) -> Result<S::Ok, S::Error>
Serialize this value with proto3 JSON semantics.
Source§fn deserialize_proto_json<'de, D: Deserializer<'de>>(
d: D,
) -> Result<Self, D::Error>
fn deserialize_proto_json<'de, D: Deserializer<'de>>( d: D, ) -> Result<Self, D::Error>
Deserialize a value with proto3 JSON semantics.
Source§impl Serialize for ProfileErrorCode
impl Serialize for ProfileErrorCode
impl StructuralPartialEq for ProfileErrorCode
Auto Trait Implementations§
impl Freeze for ProfileErrorCode
impl RefUnwindSafe for ProfileErrorCode
impl Send for ProfileErrorCode
impl Sync for ProfileErrorCode
impl Unpin for ProfileErrorCode
impl UnsafeUnpin for ProfileErrorCode
impl UnwindSafe for ProfileErrorCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.