#[non_exhaustive]pub struct ObjectNameMapping {
pub source: Option<NameMappingKey>,
pub target: Option<NameMappingValue>,
/* private fields */
}Expand description
Represents a key-value pair of NameMappingKey to NameMappingValue to represent the mapping of SQL names from the input value to desired output.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source: Option<NameMappingKey>The name of the object in source that is being mapped.
target: Option<NameMappingValue>The desired target name of the object that is being mapped.
Implementations§
Source§impl ObjectNameMapping
impl ObjectNameMapping
pub fn new() -> Self
Sourcepub fn set_source<T>(self, v: T) -> Selfwhere
T: Into<NameMappingKey>,
pub fn set_source<T>(self, v: T) -> Selfwhere
T: Into<NameMappingKey>,
Sourcepub fn set_or_clear_source<T>(self, v: Option<T>) -> Selfwhere
T: Into<NameMappingKey>,
pub fn set_or_clear_source<T>(self, v: Option<T>) -> Selfwhere
T: Into<NameMappingKey>,
Sourcepub fn set_target<T>(self, v: T) -> Selfwhere
T: Into<NameMappingValue>,
pub fn set_target<T>(self, v: T) -> Selfwhere
T: Into<NameMappingValue>,
Sourcepub fn set_or_clear_target<T>(self, v: Option<T>) -> Selfwhere
T: Into<NameMappingValue>,
pub fn set_or_clear_target<T>(self, v: Option<T>) -> Selfwhere
T: Into<NameMappingValue>,
Trait Implementations§
Source§impl Clone for ObjectNameMapping
impl Clone for ObjectNameMapping
Source§fn clone(&self) -> ObjectNameMapping
fn clone(&self) -> ObjectNameMapping
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 moreSource§impl Debug for ObjectNameMapping
impl Debug for ObjectNameMapping
Source§impl Default for ObjectNameMapping
impl Default for ObjectNameMapping
Source§fn default() -> ObjectNameMapping
fn default() -> ObjectNameMapping
Returns the “default value” for a type. Read more
Source§impl Message for ObjectNameMapping
impl Message for ObjectNameMapping
Source§impl PartialEq for ObjectNameMapping
impl PartialEq for ObjectNameMapping
impl StructuralPartialEq for ObjectNameMapping
Auto Trait Implementations§
impl Freeze for ObjectNameMapping
impl RefUnwindSafe for ObjectNameMapping
impl Send for ObjectNameMapping
impl Sync for ObjectNameMapping
impl Unpin for ObjectNameMapping
impl UnwindSafe for ObjectNameMapping
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