[][src]Trait pgx::inoutfuncs::InOutFuncs

pub trait InOutFuncs {
    fn input(input: &CStr) -> Self
    where
        Self: Sized
;
fn output(&self, buffer: &mut StringInfo); }

#[derive(Serialize, Deserialize, PostgresType)] types may implement this trait if they prefer a textual representation that isn't JSON

Required methods

fn input(input: &CStr) -> Self where
    Self: Sized

Given a string representation of Self, parse it into Self.

It is expected that malformed input will raise an error!() or panic!()

fn output(&self, buffer: &mut StringInfo)

Convert Self into text by writing to the supplied StringInfo buffer

Loading content...

Implementors

Loading content...