pub struct RenderStyle {
pub date_style: DateStyleKind,
pub date_order: DateOrder,
pub interval_style: IntervalStyleKind,
pub extra_float_digits: i32,
pub bytea_escape: bool,
pub mysql: bool,
}Fields§
§date_style: DateStyleKind§date_order: DateOrder§interval_style: IntervalStyleKind§extra_float_digits: i32PG default 1: >= 1 means shortest-round-trip output; 0 and negative trim to 15+n (float8) / 6+n (float4) significant digits.
bytea_escape: boolv7.39 (round 524) — the session asked for bytea_output = 'escape'. PG’s other bytea form: printable bytes as themselves, a
backslash doubled, everything else three-digit octal. SPG accepted
the SET and rendered hex regardless, so a client that asked for
escape got the form it had just said it did not want.
mysql: boolv7.39 (round 368, M20 P3) — the session is on the MySQL dialect, so
a binary string (Value::Bytes, e.g. a 0x… literal) renders as
its raw bytes read latin-1 (0x41 → ‘A’, CONCAT(0x41,'B') →
‘AB’), not as PG’s \x… hex form.
Trait Implementations§
Source§impl Clone for RenderStyle
impl Clone for RenderStyle
Source§fn clone(&self) -> RenderStyle
fn clone(&self) -> RenderStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RenderStyle
Source§impl Debug for RenderStyle
impl Debug for RenderStyle
Source§impl Default for RenderStyle
impl Default for RenderStyle
impl Eq for RenderStyle
Source§impl PartialEq for RenderStyle
impl PartialEq for RenderStyle
impl StructuralPartialEq for RenderStyle
Auto Trait Implementations§
impl Freeze for RenderStyle
impl RefUnwindSafe for RenderStyle
impl Send for RenderStyle
impl Sync for RenderStyle
impl Unpin for RenderStyle
impl UnsafeUnpin for RenderStyle
impl UnwindSafe for RenderStyle
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