pub enum ReceiptPath {
Text(String),
Bytes(Vec<u8>),
}Expand description
A path as the policy format writes it: a string when its bytes are valid UTF-8, otherwise the bytes.
Variants§
Trait Implementations§
Source§impl Clone for ReceiptPath
impl Clone for ReceiptPath
Source§impl Debug for ReceiptPath
impl Debug for ReceiptPath
Source§impl<'de> Deserialize<'de> for ReceiptPath
impl<'de> Deserialize<'de> for ReceiptPath
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ReceiptPath
Source§impl From<&Path> for ReceiptPath
impl From<&Path> for ReceiptPath
Source§impl PartialEq for ReceiptPath
impl PartialEq for ReceiptPath
Source§impl Serialize for ReceiptPath
impl Serialize for ReceiptPath
impl StructuralPartialEq for ReceiptPath
Auto Trait Implementations§
impl Freeze for ReceiptPath
impl RefUnwindSafe for ReceiptPath
impl Send for ReceiptPath
impl Sync for ReceiptPath
impl Unpin for ReceiptPath
impl UnsafeUnpin for ReceiptPath
impl UnwindSafe for ReceiptPath
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more