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

pub trait InOutFuncs {
    pub fn input(input: &CStr) -> Self
    where
        Self: Sized
;
pub 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

pub fn input(input: &CStr) -> Self where
    Self: Sized
[src]

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

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

pub fn output(&self, buffer: &mut StringInfo)[src]

Convert Self into text by writing to the supplied StringInfo buffer

Loading content...

Implementors

Loading content...