Struct aws_sdk_glue::model::Mapping
source · #[non_exhaustive]pub struct Mapping { /* private fields */ }Expand description
Specifies the mapping of data property keys.
Implementations§
source§impl Mapping
impl Mapping
sourcepub fn to_key(&self) -> Option<&str>
pub fn to_key(&self) -> Option<&str>
After the apply mapping, what the name of the column should be. Can be the same as FromPath.
sourcepub fn children(&self) -> Option<&[Mapping]>
pub fn children(&self) -> Option<&[Mapping]>
Only applicable to nested data structures. If you want to change the parent structure, but also one of its children, you can fill out this data strucutre. It is also Mapping, but its FromPath will be the parent's FromPath plus the FromPath from this structure.
For the children part, suppose you have the structure:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
You can specify a Mapping that looks like:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }