pub enum VarOrBool {
Var(String),
Bool(bool),
}Expand description
Enum used when the value can be string resource or just a row string.
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VarOrBool
impl<'de> Deserialize<'de> for VarOrBool
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 YaDeserialize for VarOrBool
impl YaDeserialize for VarOrBool
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
Source§impl YaSerialize for VarOrBool
impl YaSerialize for VarOrBool
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
fn serialize_attributes( &self, attributes: Vec<OwnedAttribute>, namespace: Namespace, ) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl Eq for VarOrBool
impl StructuralPartialEq for VarOrBool
Auto Trait Implementations§
impl Freeze for VarOrBool
impl RefUnwindSafe for VarOrBool
impl Send for VarOrBool
impl Sync for VarOrBool
impl Unpin for VarOrBool
impl UnwindSafe for VarOrBool
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