pub enum BundleTarget {
All,
List(Vec<BundleType>),
One(BundleType),
}
Expand description
Targets to bundle. Each value is case insensitive.
Variants§
All
Bundle all targets.
List(Vec<BundleType>)
A list of bundle targets.
One(BundleType)
A single bundle target.
Implementations§
Source§impl BundleTarget
impl BundleTarget
Sourcepub fn to_vec(&self) -> Vec<BundleType>
pub fn to_vec(&self) -> Vec<BundleType>
Gets the bundle targets as a Vec
. The vector is empty when set to BundleTarget::All
.
Trait Implementations§
Source§impl Clone for BundleTarget
impl Clone for BundleTarget
Source§fn clone(&self) -> BundleTarget
fn clone(&self) -> BundleTarget
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BundleTarget
impl Debug for BundleTarget
Source§impl Default for BundleTarget
impl Default for BundleTarget
Source§impl<'de> Deserialize<'de> for BundleTarget
impl<'de> Deserialize<'de> for BundleTarget
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 PartialEq for BundleTarget
impl PartialEq for BundleTarget
Source§impl Serialize for BundleTarget
impl Serialize for BundleTarget
impl Eq for BundleTarget
impl StructuralPartialEq for BundleTarget
Auto Trait Implementations§
impl Freeze for BundleTarget
impl RefUnwindSafe for BundleTarget
impl Send for BundleTarget
impl Sync for BundleTarget
impl Unpin for BundleTarget
impl UnwindSafe for BundleTarget
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.