pub struct MetadataType(/* private fields */);Expand description
Identifier for a metadata type — the xml_name value that goes in
<types><name> and as the SOAP type parameter.
Use the associated constants (Self::APEX_CLASS, etc.) for
common types, or Self::new for any Salesforce-defined type
that isn’t covered by a constant. The constants are
const-constructible, so they cost nothing at runtime — they’re
just typed wrappers around &'static str values.
use cirrus_metadata::MetadataType;
// Use a constant for a common type:
let t = MetadataType::APEX_CLASS;
assert_eq!(t.as_str(), "ApexClass");
// Or pass an arbitrary type name:
let t = MetadataType::new("MyCustomFeatureType");
assert_eq!(t.as_str(), "MyCustomFeatureType");Implementations§
Source§impl MetadataType
impl MetadataType
Source§impl MetadataType
impl MetadataType
pub const APEX_CLASS: MetadataType
pub const APEX_COMPONENT: MetadataType
pub const APEX_PAGE: MetadataType
pub const APEX_TRIGGER: MetadataType
pub const APEX_TEST_SUITE: MetadataType
pub const CUSTOM_OBJECT: MetadataType
pub const CUSTOM_FIELD: MetadataType
pub const CUSTOM_TAB: MetadataType
pub const CUSTOM_APPLICATION: MetadataType
pub const CUSTOM_LABELS: MetadataType
pub const CUSTOM_METADATA: MetadataType
pub const CUSTOM_OBJECT_TRANSLATION: MetadataType
pub const TRANSLATIONS: MetadataType
pub const STANDARD_VALUE_SET: MetadataType
pub const GLOBAL_VALUE_SET: MetadataType
pub const RECORD_TYPE: MetadataType
pub const LAYOUT: MetadataType
pub const LIST_VIEW: MetadataType
pub const FIELD_SET: MetadataType
pub const VALIDATION_RULE: MetadataType
pub const WEB_LINK: MetadataType
pub const QUICK_ACTION: MetadataType
pub const PROFILE: MetadataType
pub const PERMISSION_SET: MetadataType
pub const PERMISSION_SET_GROUP: MetadataType
pub const ROLE: MetadataType
pub const GROUP: MetadataType
pub const QUEUE: MetadataType
pub const SHARING_RULES: MetadataType
pub const FLOW: MetadataType
pub const FLOW_DEFINITION: MetadataType
pub const WORKFLOW: MetadataType
pub const APPROVAL_PROCESS: MetadataType
pub const REPORT: MetadataType
pub const REPORT_TYPE: MetadataType
pub const DASHBOARD: MetadataType
pub const DOCUMENT: MetadataType
pub const EMAIL_TEMPLATE: MetadataType
pub const LIGHTNING_COMPONENT_BUNDLE: MetadataType
pub const AURA_DEFINITION_BUNDLE: MetadataType
pub const STATIC_RESOURCE: MetadataType
pub const CONTENT_ASSET: MetadataType
pub const CONNECTED_APP: MetadataType
pub const NAMED_CREDENTIAL: MetadataType
pub const AUTH_PROVIDER: MetadataType
pub const REMOTE_SITE_SETTING: MetadataType
Trait Implementations§
Source§impl AsRef<str> for MetadataType
impl AsRef<str> for MetadataType
Source§impl Clone for MetadataType
impl Clone for MetadataType
Source§fn clone(&self) -> MetadataType
fn clone(&self) -> MetadataType
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 moreSource§impl Debug for MetadataType
impl Debug for MetadataType
Source§impl Display for MetadataType
impl Display for MetadataType
Source§impl From<&'static str> for MetadataType
impl From<&'static str> for MetadataType
Source§impl From<String> for MetadataType
impl From<String> for MetadataType
Source§impl Hash for MetadataType
impl Hash for MetadataType
Source§impl PartialEq for MetadataType
impl PartialEq for MetadataType
Source§fn eq(&self, other: &MetadataType) -> bool
fn eq(&self, other: &MetadataType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MetadataType
impl StructuralPartialEq for MetadataType
Auto Trait Implementations§
impl Freeze for MetadataType
impl RefUnwindSafe for MetadataType
impl Send for MetadataType
impl Sync for MetadataType
impl Unpin for MetadataType
impl UnsafeUnpin for MetadataType
impl UnwindSafe for MetadataType
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