pub struct OrgCustomProperty {
pub property_name: String,
pub value_type: ValueType,
pub required: Option<bool>,
pub default_value: Option<Option<Box<OrgsCreateOrUpdateCustomPropertyRequestDefaultValue>>>,
pub description: Option<Option<String>>,
pub allowed_values: Option<Option<Vec<String>>>,
pub values_editable_by: Option<Option<ValuesEditableBy>>,
}
Expand description
OrgCustomProperty : Custom property defined on an organization
Fields§
§property_name: String
The name of the property
value_type: ValueType
The type of the value for the property
required: Option<bool>
Whether the property is required.
default_value: Option<Option<Box<OrgsCreateOrUpdateCustomPropertyRequestDefaultValue>>>
§description: Option<Option<String>>
Short description of the property
allowed_values: Option<Option<Vec<String>>>
An ordered list of the allowed values of the property. The property can have up to 200 allowed values.
values_editable_by: Option<Option<ValuesEditableBy>>
Who can edit the values of the property
Implementations§
Source§impl OrgCustomProperty
impl OrgCustomProperty
Sourcepub fn new(property_name: String, value_type: ValueType) -> OrgCustomProperty
pub fn new(property_name: String, value_type: ValueType) -> OrgCustomProperty
Custom property defined on an organization
Trait Implementations§
Source§impl Clone for OrgCustomProperty
impl Clone for OrgCustomProperty
Source§fn clone(&self) -> OrgCustomProperty
fn clone(&self) -> OrgCustomProperty
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 OrgCustomProperty
impl Debug for OrgCustomProperty
Source§impl Default for OrgCustomProperty
impl Default for OrgCustomProperty
Source§fn default() -> OrgCustomProperty
fn default() -> OrgCustomProperty
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OrgCustomProperty
impl<'de> Deserialize<'de> for OrgCustomProperty
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 PartialEq for OrgCustomProperty
impl PartialEq for OrgCustomProperty
Source§impl Serialize for OrgCustomProperty
impl Serialize for OrgCustomProperty
impl StructuralPartialEq for OrgCustomProperty
Auto Trait Implementations§
impl Freeze for OrgCustomProperty
impl RefUnwindSafe for OrgCustomProperty
impl Send for OrgCustomProperty
impl Sync for OrgCustomProperty
impl Unpin for OrgCustomProperty
impl UnwindSafe for OrgCustomProperty
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