pub struct ConstraintDecl {
pub name: String,
pub ranking: String,
pub k: u64,
pub attribute: String,
pub test: ConstraintTest,
pub against: Against,
pub aggregate: ConstraintAggregate,
}Expand description
A constraint declaration (3.4.5).
Fields§
§name: String§ranking: StringA declared ranking whose top k is checked.
k: u64§attribute: StringAn item attribute in gold items.
test: ConstraintTest§against: Against§aggregate: ConstraintAggregateTrait Implementations§
Source§impl Clone for ConstraintDecl
impl Clone for ConstraintDecl
Source§impl Debug for ConstraintDecl
impl Debug for ConstraintDecl
Source§impl<'de> Deserialize<'de> for ConstraintDecl
impl<'de> Deserialize<'de> for ConstraintDecl
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 ConstraintDecl
Source§impl PartialEq for ConstraintDecl
impl PartialEq for ConstraintDecl
Source§impl Serialize for ConstraintDecl
impl Serialize for ConstraintDecl
impl StructuralPartialEq for ConstraintDecl
Auto Trait Implementations§
impl Freeze for ConstraintDecl
impl RefUnwindSafe for ConstraintDecl
impl Send for ConstraintDecl
impl Sync for ConstraintDecl
impl Unpin for ConstraintDecl
impl UnsafeUnpin for ConstraintDecl
impl UnwindSafe for ConstraintDecl
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