pub struct ValueTypeField {
pub name: Option<String>,
pub soap_type: Option<String>,
pub min_occurs: i32,
pub value_required: bool,
pub is_name_field: bool,
pub is_foreign_key: bool,
pub foreign_key_domain: Option<String>,
pub picklist_values: Vec<PicklistEntry>,
pub fields: Vec<ValueTypeField>,
}Expand description
Describes one field of a metadata type, returned inside
DescribeValueTypeResult::value_type_fields.
Self-referential — complex fields can carry nested
fields describing their own structure (e.g. a
CustomField value type field on CustomObject itself has a
nested schema). Use Self::fields to walk the tree.
Fields§
§name: Option<String>Field name. None for the placeholder root in parent_field.
soap_type: Option<String>XML Schema simple type name (e.g. "boolean", "double",
"string").
min_occurs: i321 if the field is required, 0 otherwise. (The wire uses an
XSD-style cardinality bound.)
value_required: boolWhether the field must have a non-null value.
is_name_field: boolWhether this field is the type’s fullName.
is_foreign_key: boolWhether this field is a foreign key to another component.
foreign_key_domain: Option<String>Target object type when is_foreign_key
is true (e.g. "Account", "Opportunity").
picklist_values: Vec<PicklistEntry>Picklist options when this field is a picklist. Empty for non-picklist fields.
fields: Vec<ValueTypeField>Nested fields for complex / structured value types. The wire
emits multiple <fields> siblings, each carrying its own
ValueTypeField.
Trait Implementations§
Source§impl Clone for ValueTypeField
impl Clone for ValueTypeField
Source§fn clone(&self) -> ValueTypeField
fn clone(&self) -> ValueTypeField
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more