pub struct MappingIssue {
pub direction: String,
pub reason: String,
pub attribute_name: String,
pub attribute_value: Option<Value>,
pub object_index: Option<usize>,
pub qualifier: Option<String>,
}Expand description
A single mapping issue recorded during attribute translation.
Fields§
§direction: StringWhether the issue occurred during "request" or "response" mapping.
reason: StringCategory of the mapping failure.
attribute_name: StringThe attribute name that triggered the issue.
attribute_value: Option<Value>The attribute value, if relevant to the issue.
object_index: Option<usize>Zero-based index within a response list.
qualifier: Option<String>The qualifier that was being mapped.
Implementations§
Source§impl MappingIssue
impl MappingIssue
Sourcepub fn to_payload(&self) -> HashMap<String, Value>
pub fn to_payload(&self) -> HashMap<String, Value>
Return the issue as a JSON-serialisable map.
Trait Implementations§
Source§impl Clone for MappingIssue
impl Clone for MappingIssue
Source§fn clone(&self) -> MappingIssue
fn clone(&self) -> MappingIssue
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 moreAuto Trait Implementations§
impl Freeze for MappingIssue
impl RefUnwindSafe for MappingIssue
impl Send for MappingIssue
impl Sync for MappingIssue
impl Unpin for MappingIssue
impl UnsafeUnpin for MappingIssue
impl UnwindSafe for MappingIssue
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