#[repr(i32)]pub enum CompanyProfileFieldType {
SourceText = 0,
LinkType = 1,
IndependentTitle = 2,
}Expand description
公司资料字段类型
Variants§
Implementations§
Source§impl CompanyProfileFieldType
impl CompanyProfileFieldType
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of CompanyProfileFieldType.
Sourcepub fn from_i32(value: i32) -> Option<CompanyProfileFieldType>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<CompanyProfileFieldType>
Use the TryFrom<i32> implementation instead
Converts an i32 to a CompanyProfileFieldType, or None if value is not a valid variant.
Source§impl CompanyProfileFieldType
impl CompanyProfileFieldType
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 CompanyProfileFieldType
impl Clone for CompanyProfileFieldType
Source§fn clone(&self) -> CompanyProfileFieldType
fn clone(&self) -> CompanyProfileFieldType
Returns a duplicate 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 CompanyProfileFieldType
impl Debug for CompanyProfileFieldType
Source§impl Default for CompanyProfileFieldType
impl Default for CompanyProfileFieldType
Source§fn default() -> CompanyProfileFieldType
fn default() -> CompanyProfileFieldType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CompanyProfileFieldType
impl<'de> Deserialize<'de> for CompanyProfileFieldType
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<CompanyProfileFieldType> for i32
impl From<CompanyProfileFieldType> for i32
Source§fn from(value: CompanyProfileFieldType) -> i32
fn from(value: CompanyProfileFieldType) -> i32
Converts to this type from the input type.
Source§impl Hash for CompanyProfileFieldType
impl Hash for CompanyProfileFieldType
Source§impl Ord for CompanyProfileFieldType
impl Ord for CompanyProfileFieldType
Source§fn cmp(&self, other: &CompanyProfileFieldType) -> Ordering
fn cmp(&self, other: &CompanyProfileFieldType) -> Ordering
1.21.0 · 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 CompanyProfileFieldType
impl PartialEq for CompanyProfileFieldType
Source§impl PartialOrd for CompanyProfileFieldType
impl PartialOrd for CompanyProfileFieldType
Source§impl Serialize for CompanyProfileFieldType
impl Serialize for CompanyProfileFieldType
Source§impl TryFrom<i32> for CompanyProfileFieldType
impl TryFrom<i32> for CompanyProfileFieldType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<CompanyProfileFieldType, UnknownEnumValue>
fn try_from(value: i32) -> Result<CompanyProfileFieldType, UnknownEnumValue>
Performs the conversion.
impl Copy for CompanyProfileFieldType
impl Eq for CompanyProfileFieldType
impl StructuralPartialEq for CompanyProfileFieldType
Auto Trait Implementations§
impl Freeze for CompanyProfileFieldType
impl RefUnwindSafe for CompanyProfileFieldType
impl Send for CompanyProfileFieldType
impl Sync for CompanyProfileFieldType
impl Unpin for CompanyProfileFieldType
impl UnsafeUnpin for CompanyProfileFieldType
impl UnwindSafe for CompanyProfileFieldType
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