pub struct CustomProfileFieldType { /* private fields */ }Expand description
Represents the details of the field type with the field type as the name of the property itself. The current supported field types are as follows:
SHORT_TEXTLONG_TEXTDATEfor date-based fields.SELECTfor a list of options.URLfor links.EXTERNAL_ACCOUNTfor external accounts.USERfor selecting a user for the field.PRONOUNSfor a short text field with convenient typeahead for one’s preferred pronouns.
Changes: PRONOUNS type added in Zulip 6.0 (feature level 151).
Implementations§
Source§impl CustomProfileFieldType
impl CustomProfileFieldType
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new CustomProfileFieldType.
Source§impl CustomProfileFieldType
impl CustomProfileFieldType
Sourcepub const fn id(&self) -> CustomProfileFieldTypeId
pub const fn id(&self) -> CustomProfileFieldTypeId
Gets the CustomProfileFieldType id.
The ID of the custom profile field type.
Sourcepub fn set_id(&mut self, val: CustomProfileFieldTypeId)
pub fn set_id(&mut self, val: CustomProfileFieldTypeId)
Sets the CustomProfileFieldType id.
The ID of the custom profile field type.
Sourcepub fn with_id(self, val: CustomProfileFieldTypeId) -> Self
pub fn with_id(self, val: CustomProfileFieldTypeId) -> Self
Builder function that sets the CustomProfileFieldType id.
The ID of the custom profile field type.
Source§impl CustomProfileFieldType
impl CustomProfileFieldType
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Gets the CustomProfileFieldType name.
Trait Implementations§
Source§impl Clone for CustomProfileFieldType
impl Clone for CustomProfileFieldType
Source§impl Debug for CustomProfileFieldType
impl Debug for CustomProfileFieldType
Source§impl Default for CustomProfileFieldType
impl Default for CustomProfileFieldType
Source§impl<'de> Deserialize<'de> for CustomProfileFieldType
impl<'de> Deserialize<'de> for CustomProfileFieldType
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 Display for CustomProfileFieldType
impl Display for CustomProfileFieldType
Source§impl<'c> From<&'c CustomProfileFieldType> for Cow<'c, CustomProfileFieldType>
impl<'c> From<&'c CustomProfileFieldType> for Cow<'c, CustomProfileFieldType>
Source§fn from(val: &'c CustomProfileFieldType) -> Self
fn from(val: &'c CustomProfileFieldType) -> Self
Converts to this type from the input type.
Source§impl<'c> From<Cow<'c, CustomProfileFieldType>> for CustomProfileFieldType
impl<'c> From<Cow<'c, CustomProfileFieldType>> for CustomProfileFieldType
Source§impl<'c> From<CustomProfileFieldType> for Cow<'c, CustomProfileFieldType>
impl<'c> From<CustomProfileFieldType> for Cow<'c, CustomProfileFieldType>
Source§fn from(val: CustomProfileFieldType) -> Self
fn from(val: CustomProfileFieldType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CustomProfileFieldType
impl PartialEq for CustomProfileFieldType
Source§impl Serialize for CustomProfileFieldType
impl Serialize for CustomProfileFieldType
impl StructuralPartialEq for CustomProfileFieldType
Auto Trait Implementations§
impl Freeze for CustomProfileFieldType
impl RefUnwindSafe for CustomProfileFieldType
impl Send for CustomProfileFieldType
impl Sync for CustomProfileFieldType
impl Unpin for CustomProfileFieldType
impl UnsafeUnpin for CustomProfileFieldType
impl UnwindSafe for CustomProfileFieldType
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