pub fn decode(&self, format: &PgFormat, raw: &[u8]) -> Result<Value, String> {
        match format {
            PgFormat::Binary => self.decode_binary(&mut Cursor::from(raw)),
            PgFormat::Text => self.decode_text(raw),
        }
    }
/// Deserializes a value of this type from `raw` using the specified `format`.
Deserializes a value of this type from `raw` using the specified `format`.
Deserializes a value of this type from ` raw ` using the specified ` format ` .
pub fn decode(&self, format: &PgFormat, raw: &[u8]) -> Result<Value, String> {
        match format {
            PgFormat::Binary => self.decode_binary(&mut Cursor::from(raw)),
            PgFormat::Text => self.decode_text(raw),
        }
    }
pub fn decode ( & self , format : & PgFormat , raw : & [ u8 ] ) -> Result < Value , String > { match format { PgFormat :: Binary => self . decode_binary ( & mut Cursor :: from ( raw ) ) , PgFormat :: Text => self . decode_text ( raw ) , } }
Deserializes a value of this type from `raw` using the specified `format`.
Deserializes a value of this type from ` raw ` using the specified ` format ` .
&self
format
&PgFormat
raw
&[u8]
&self
format
&PgFormat
raw
&[u8]