pub struct ConvertOptions {
pub relationship: RelationshipResolution,
pub specialization: SpecializationStrategy,
pub complex_attribute: ComplexAttributeStrategy,
pub modern_naming: bool,
pub sanitize_identifiers: bool,
}Expand description
All knobs for the conceptual → logical conversion.
Fields§
§relationship: RelationshipResolutionRelationship resolution policy.
specialization: SpecializationStrategySpecialization strategy.
complex_attribute: ComplexAttributeStrategyComplex attribute strategy (composite + multivalued).
modern_naming: boolIf true, generate _id suffix instead of _pk/_fk in synthesized
column names. Defaults to false to mirror brModelo’s naming.
sanitize_identifiers: boolIf true, drop non-alphanumeric characters from generated identifiers
(matches brModelo’s removerCaracteresEspeciais).
Implementations§
Trait Implementations§
Source§impl Clone for ConvertOptions
impl Clone for ConvertOptions
Source§fn clone(&self) -> ConvertOptions
fn clone(&self) -> ConvertOptions
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 ConvertOptions
impl Debug for ConvertOptions
Source§impl Default for ConvertOptions
impl Default for ConvertOptions
Source§fn default() -> ConvertOptions
fn default() -> ConvertOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConvertOptions
impl<'de> Deserialize<'de> for ConvertOptions
Source§fn 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 Freeze for ConvertOptions
impl RefUnwindSafe for ConvertOptions
impl Send for ConvertOptions
impl Sync for ConvertOptions
impl Unpin for ConvertOptions
impl UnsafeUnpin for ConvertOptions
impl UnwindSafe for ConvertOptions
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