Function ockam_core::api::decode_option
source · [−]pub fn decode_option<'a, 'b, T: Decode<'b, ()>>(
label: &'a str,
struct_name: impl Into<Option<&'a str>>,
buf: &'b [u8]
) -> Result<Option<T>>
Expand description
Decode response and an optional body.