fn to_vec(self) -> Result<Vec<u8>> {
        let mut data = Vec::new();
        cbor::ser::into_writer(&self.to_cbor_value()?, &mut data)?;
        Ok(data)
    }
/// Serialize this object to a vector, consuming it along the way.
Serialize this object to a vector, consuming it along the way.
Serialize this object to a vector consuming it along the way .
fn to_vec(self) -> Result<Vec<u8>> {
        let mut data = Vec::new();
        cbor::ser::into_writer(&self.to_cbor_value()?, &mut data)?;
        Ok(data)
    }
fn to_vec ( self ) -> Result < Vec < u8 > > { let mut data = Vec :: new ( ) ; cbor :: ser :: into_writer ( & self . to_cbor_value ( ) ? , & mut data ) ? ; Ok ( data ) }
Serialize this object to a vector, consuming it along the way.
Serialize this object to a vector consuming it along the way .
self