Skip to content

Commit

Permalink
data validation: add data validation support
Browse files Browse the repository at this point in the history
Feature #97
  • Loading branch information
jmcnamara committed Jul 12, 2024
1 parent b3729f8 commit bb48b02
Show file tree
Hide file tree
Showing 6 changed files with 2,494 additions and 10 deletions.
14 changes: 7 additions & 7 deletions src/conditional_format.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// image - A module to represent Excel conditional formats.
// conditional_format - A module to represent Excel conditional formats.
//
// SPDX-License-Identifier: MIT OR Apache-2.0
//
Expand Down Expand Up @@ -6784,7 +6784,7 @@ conditional_format_value_from_type!(&NaiveDate & NaiveDateTime & NaiveTime);
/// [`ConditionalFormatCell`].
///
///
#[derive(Clone, Copy, PartialEq, Eq)]
#[derive(Clone)]
pub enum ConditionalFormatCellRule<T: IntoConditionalFormatValue> {
/// Show the conditional format for cells that are equal to the target value.
EqualTo(T),
Expand Down Expand Up @@ -6834,7 +6834,7 @@ impl<T: IntoConditionalFormatValue> fmt::Display for ConditionalFormatCellRule<T
/// [`ConditionalFormatCell`].
///
///
#[derive(Clone, Copy, PartialEq, Eq)]
#[derive(Clone)]
pub enum ConditionalFormatTopRule {
/// Show the conditional format for cells that are in the top X.
Top(u16),
Expand All @@ -6856,7 +6856,7 @@ pub enum ConditionalFormatTopRule {
/// The `ConditionalFormatAverageRule` enum defines the conditional format
/// criteria for [`ConditionalFormatCell`].
///
#[derive(Clone, Copy, PartialEq, Eq)]
#[derive(Clone)]
pub enum ConditionalFormatAverageRule {
/// Show the conditional format for cells above the average for the range.
/// This is the default.
Expand Down Expand Up @@ -6939,7 +6939,7 @@ impl fmt::Display for ConditionalFormatTextRule {
/// The `ConditionalFormatDateRule` enum defines the conditional format
/// criteria for [`ConditionalFormatDate`].
///
#[derive(Clone, Copy, PartialEq, Eq)]
#[derive(Clone)]
pub enum ConditionalFormatDateRule {
/// Show the conditional format for dates occurring yesterday. This is the
/// default.
Expand Down Expand Up @@ -7146,7 +7146,7 @@ pub enum ConditionalFormatType {
/// <img
/// src="https://rustxlsxwriter.github.io/images/conditional_format_databar_set_direction.png">
///
#[derive(Clone, Copy, PartialEq, Eq)]
#[derive(Clone)]
pub enum ConditionalFormatDataBarDirection {
/// The bars go "Right to left" or "Left to right" depending on the context.
/// This is the default.
Expand Down Expand Up @@ -7225,7 +7225,7 @@ pub enum ConditionalFormatDataBarDirection {
///
/// <img src="https://rustxlsxwriter.github.io/images/conditional_format_databar_set_axis_position.png">
///
#[derive(Clone, Copy, PartialEq, Eq)]
#[derive(Clone, PartialEq, Eq)]
pub enum ConditionalFormatDataBarAxisPosition {
/// The axis is set automatically depending on whether the data contains
/// negative values. This is the default.
Expand Down
Loading

0 comments on commit bb48b02

Please sign in to comment.