Struct oas_common::mapping::FieldMapping
source · [−]pub struct FieldMapping { /* private fields */ }
Implementations
sourceimpl FieldMapping
impl FieldMapping
pub fn target_key(&self) -> &str
pub fn apply(&self, value: Value) -> Result<Value, MappingError>
pub fn reverse(self, source_key: String) -> (String, FieldMapping)
Trait Implementations
sourceimpl Debug for FieldMapping
impl Debug for FieldMapping
sourceimpl Default for FieldMapping
impl Default for FieldMapping
sourcefn default() -> FieldMapping
fn default() -> FieldMapping
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for FieldMapping
impl<'de> Deserialize<'de> for FieldMapping
sourcefn 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
sourceimpl Serialize for FieldMapping
impl Serialize for FieldMapping
Auto Trait Implementations
impl RefUnwindSafe for FieldMapping
impl Send for FieldMapping
impl Sync for FieldMapping
impl Unpin for FieldMapping
impl UnwindSafe for FieldMapping
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be
Self