pub enum Import<'a> {
String(&'a str),
Qualified(QualifiedImport<'a>),
}
Variants§
String(&'a str)
Qualified(QualifiedImport<'a>)
Trait Implementations§
Source§impl<'a> ValueDeserialize<'a> for Import<'a>
impl<'a> ValueDeserialize<'a> for Import<'a>
fn deserialize(input: DeserValue<'a>) -> Result<Self, Error>
Source§fn default_when_missing() -> Option<Self>
fn default_when_missing() -> Option<Self>
Provides a default in the case where a field of this type is missing
Auto Trait Implementations§
impl<'a> Freeze for Import<'a>
impl<'a> RefUnwindSafe for Import<'a>
impl<'a> Send for Import<'a>
impl<'a> Sync for Import<'a>
impl<'a> Unpin for Import<'a>
impl<'a> UnwindSafe for Import<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more