FromBcs

Trait FromBcs 

Source
pub trait FromBcs {
    // Provided methods
    fn from_bcs<'de>(bytes: &'de [u8]) -> Result<Self, Error>
       where Self: Deserialize<'de> { ... }
    fn from_bcs_base64(base64: &str) -> Result<Self, Error>
       where Self: DeserializeOwned { ... }
}
Available on crate feature serde only.

Provided Methods§

Source

fn from_bcs<'de>(bytes: &'de [u8]) -> Result<Self, Error>
where Self: Deserialize<'de>,

Source

fn from_bcs_base64(base64: &str) -> Result<Self, Error>
where Self: DeserializeOwned,

Implementors§

Source§

impl<'de, T> FromBcs for T
where T: Deserialize<'de>,