Struct oas_common::mapping::FieldMap
source · [−]pub struct FieldMap { /* private fields */ }
Implementations
sourceimpl FieldMap
impl FieldMap
pub fn new() -> Self
pub fn insert(&mut self, key: String, field_mapping: FieldMapping)
pub fn inner(&self) -> &HashMap<String, FieldMapping>
pub fn get(&self, key: &str) -> Option<&FieldMapping>
pub fn apply_json_value(&self, source: Value) -> Result<Value, MappingError>
pub fn apply_json_object(&self, source: Object) -> Result<Object, MappingError>
pub fn reverse(self) -> Self
Trait Implementations
sourceimpl<'de> Deserialize<'de> for FieldMap
impl<'de> Deserialize<'de> for FieldMap
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
Auto Trait Implementations
impl RefUnwindSafe for FieldMap
impl Send for FieldMap
impl Sync for FieldMap
impl Unpin for FieldMap
impl UnwindSafe for FieldMap
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