pub enum StrOrList {
One(String),
Many(Vec<String>),
}Expand description
A Python str | list[str] field.
Variants§
Trait Implementations§
impl Eq for StrOrList
impl StructuralPartialEq for StrOrList
Auto Trait Implementations§
impl Freeze for StrOrList
impl RefUnwindSafe for StrOrList
impl Send for StrOrList
impl Sync for StrOrList
impl Unpin for StrOrList
impl UnsafeUnpin for StrOrList
impl UnwindSafe for StrOrList
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