pub struct ParseOptions {
pub postgres_version_hint: Option<String>,
}Expand description
Parser-level configuration.
Currently the only knob is the optional postgres_version_hint, which lets
callers steer schema-profile selection when the JSON payload itself does
not carry a PostgreSQL Version field. The hint is parsed for a leading
integer (e.g. "12", "PostgreSQL 13.4") and ignored if no major version
can be extracted.
Fields§
§postgres_version_hint: Option<String>Implementations§
Source§impl ParseOptions
impl ParseOptions
pub fn new() -> Self
pub fn with_postgres_version_hint(self, hint: impl Into<String>) -> Self
pub fn schema_profile_hint(&self) -> Option<PostgresSchemaProfile>
Trait Implementations§
Source§impl Clone for ParseOptions
impl Clone for ParseOptions
Source§impl Debug for ParseOptions
impl Debug for ParseOptions
Auto Trait Implementations§
impl Forget for ParseOptions
impl Freeze for ParseOptions
impl Move for ParseOptions
impl RefUnwindSafe for ParseOptions
impl Send for ParseOptions
impl Sync for ParseOptions
impl Unpin for ParseOptions
impl UnsafeUnpin for ParseOptions
impl UnwindSafe for ParseOptions
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