pub enum PackageSetting {
Source(String),
Filtered(PackageFilter),
}Expand description
A package entry from Pi’s packages setting.
The string form loads every resource exposed by the package. The object
form can restrict individual resource kinds through PackageFilter.
Variants§
Source(String)
Filtered(PackageFilter)
Implementations§
Trait Implementations§
Source§impl Clone for PackageSetting
impl Clone for PackageSetting
Source§fn clone(&self) -> PackageSetting
fn clone(&self) -> PackageSetting
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PackageSetting
impl Debug for PackageSetting
Source§impl<'de> Deserialize<'de> for PackageSetting
impl<'de> Deserialize<'de> for PackageSetting
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
impl Eq for PackageSetting
Source§impl From<&str> for PackageSetting
impl From<&str> for PackageSetting
Source§impl From<String> for PackageSetting
impl From<String> for PackageSetting
Source§impl PartialEq for PackageSetting
impl PartialEq for PackageSetting
Source§impl Serialize for PackageSetting
impl Serialize for PackageSetting
impl StructuralPartialEq for PackageSetting
Auto Trait Implementations§
impl Freeze for PackageSetting
impl RefUnwindSafe for PackageSetting
impl Send for PackageSetting
impl Sync for PackageSetting
impl Unpin for PackageSetting
impl UnsafeUnpin for PackageSetting
impl UnwindSafe for PackageSetting
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.