pub trait ItemObjectParseable: Sized {
// Required methods
fn check_label(label: &str) -> Result<(), ErrorProblem>;
fn from_bytes(input: &[u8]) -> Result<Self, ErrorProblem>;
}Available on crate feature
parse2 only.Expand description
An Object value that be parsed from a netdoc
Required Methods§
Sourcefn check_label(label: &str) -> Result<(), ErrorProblem>
fn check_label(label: &str) -> Result<(), ErrorProblem>
Check that the Label is right
Sourcefn from_bytes(input: &[u8]) -> Result<Self, ErrorProblem>
fn from_bytes(input: &[u8]) -> Result<Self, ErrorProblem>
Convert the bytes of the Object (which was present) into the actual value
input has been base64-decoded.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.