pub struct RawOption {
pub key: String,
pub value: String,
}Expand description
A raw key-value representation of an attribute option.
This struct provides a simple string-based representation of options, which is useful for serialization/deserialization and when working with untyped data.
Fields§
§key: StringThe key/name of the option
value: StringThe string value of the option
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RawOption
impl<'de> Deserialize<'de> for RawOption
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
Source§impl From<AttrOption> for RawOption
impl From<AttrOption> for RawOption
Source§fn from(option: AttrOption) -> Self
fn from(option: AttrOption) -> Self
Converts to this type from the input type.
Source§impl TryFrom<RawOption> for AttrOption
impl TryFrom<RawOption> for AttrOption
impl StructuralPartialEq for RawOption
Auto Trait Implementations§
impl Freeze for RawOption
impl RefUnwindSafe for RawOption
impl Send for RawOption
impl Sync for RawOption
impl Unpin for RawOption
impl UnsafeUnpin for RawOption
impl UnwindSafe for RawOption
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