pub struct DeclarativeConditionSet {
pub minecraft_versions: Option<DeserListOrSingle<VersionPattern>>,
pub side: Option<Side>,
pub modloaders: Option<DeserListOrSingle<ModloaderMatch>>,
pub plugin_loaders: Option<DeserListOrSingle<PluginLoaderMatch>>,
pub stability: Option<PackageStability>,
pub features: Option<DeserListOrSingle<String>>,
pub content_versions: Option<DeserListOrSingle<String>>,
pub operating_systems: Option<DeserListOrSingle<OSCondition>>,
pub architectures: Option<DeserListOrSingle<ArchCondition>>,
pub languages: Option<DeserListOrSingle<Language>>,
}
Expand description
Properties that are used for choosing the best addon version from a declarative package and conditional rules
Fields§
§minecraft_versions: Option<DeserListOrSingle<VersionPattern>>
Minecraft versions to allow
side: Option<Side>
What side to allow
modloaders: Option<DeserListOrSingle<ModloaderMatch>>
What modloaders to allow
plugin_loaders: Option<DeserListOrSingle<PluginLoaderMatch>>
What plugin loaders to allow
stability: Option<PackageStability>
What stability setting to allow
features: Option<DeserListOrSingle<String>>
What features to allow
content_versions: Option<DeserListOrSingle<String>>
What content versions to allow
operating_systems: Option<DeserListOrSingle<OSCondition>>
What operating systems to allow
architectures: Option<DeserListOrSingle<ArchCondition>>
What system architectures to allow
languages: Option<DeserListOrSingle<Language>>
What languages to allow
Trait Implementations§
Source§impl Clone for DeclarativeConditionSet
impl Clone for DeclarativeConditionSet
Source§fn clone(&self) -> DeclarativeConditionSet
fn clone(&self) -> DeclarativeConditionSet
Returns a duplicate 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 DeclarativeConditionSet
impl Debug for DeclarativeConditionSet
Source§impl Default for DeclarativeConditionSet
impl Default for DeclarativeConditionSet
Source§fn default() -> DeclarativeConditionSet
fn default() -> DeclarativeConditionSet
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeclarativeConditionSetwhere
DeclarativeConditionSet: Default,
impl<'de> Deserialize<'de> for DeclarativeConditionSetwhere
DeclarativeConditionSet: Default,
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
Auto Trait Implementations§
impl Freeze for DeclarativeConditionSet
impl RefUnwindSafe for DeclarativeConditionSet
impl Send for DeclarativeConditionSet
impl Sync for DeclarativeConditionSet
impl Unpin for DeclarativeConditionSet
impl UnwindSafe for DeclarativeConditionSet
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§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