pub struct MetadataApiError {
pub status_code: String,
pub message: String,
pub fields: Vec<String>,
}Expand description
One error entry inside a CRUD result.
Distinct from MetadataError — that’s the
transport-level enum; this is the per-component validation /
permission failure Salesforce attaches to a SaveResult /
UpsertResult / DeleteResult.
status_code is left as a String rather than an enum because
Salesforce ships hundreds of status codes across the platform and
adds new ones each release.
Fields§
§status_code: StringSalesforce status code identifier (e.g. "DUPLICATE_VALUE",
"INVALID_FIELD"). String-typed because the closed enum
would lag behind Salesforce releases.
message: StringHuman-readable error message.
fields: Vec<String>Field names involved in the error, when applicable.
Trait Implementations§
Source§impl Clone for MetadataApiError
impl Clone for MetadataApiError
Source§fn clone(&self) -> MetadataApiError
fn clone(&self) -> MetadataApiError
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 MetadataApiError
impl Debug for MetadataApiError
Source§impl<'de> Deserialize<'de> for MetadataApiError
impl<'de> Deserialize<'de> for MetadataApiError
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
Auto Trait Implementations§
impl Freeze for MetadataApiError
impl RefUnwindSafe for MetadataApiError
impl Send for MetadataApiError
impl Sync for MetadataApiError
impl Unpin for MetadataApiError
impl UnsafeUnpin for MetadataApiError
impl UnwindSafe for MetadataApiError
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