Struct Filter

Source
pub struct Filter {
    pub and: Option<Vec<Box<Filter>>>,
    pub or: Option<Vec<Box<Filter>>>,
    pub property: Option<String>,
    pub condition: Option<Condition>,
    pub timestamp: Option<String>,
}

Fields§

§and: Option<Vec<Box<Filter>>>§or: Option<Vec<Box<Filter>>>§property: Option<String>§condition: Option<Condition>§timestamp: Option<String>

Always either a “created_time” or null. When it’s “created_time”, apply a timestamp filter.

Implementations§

Source§

impl Filter

Source

pub fn and(filters: Vec<Filter>) -> Self

Source

pub fn or(filters: Vec<Filter>) -> Self

Source

pub fn checkbox_is_checked<T: AsRef<str>>(property_name: T) -> Self

Return the records where the checkbox is checked.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn checkbox_is_not_checked<T: AsRef<str>>(property_name: T) -> Self

Return the records where the checkbox is NOT checked.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn date_after<S: AsRef<str>, T: AsRef<str>>( property_name: S, date: T, ) -> Self

Returns database entries where the date property value is after the provided date.

  • property_name: Property Name (Column Name) in Notion Database
  • date: ISO 8601 date
    • e.g.) "2021-05-10", "2021-05-10T12:00:00", "2021-10-15T12:00:00-07:00"
Source

pub fn date_before<S: AsRef<str>, T: AsRef<str>>( property_name: S, date: T, ) -> Self

Returns database entries where the date property value is before the provided date.

  • property_name: Property Name (Column Name) in Notion Database
  • date: The value to compare the date property value against. (ISO 8601 date)
    • e.g.) "2021-05-10", "2021-05-10T12:00:00", "2021-10-15T12:00:00-07:00"
Source

pub fn date_equals<S: AsRef<str>, T: AsRef<str>>( property_name: S, date: T, ) -> Self

Returns database entries where the date property value is the provided date.

  • property_name: Property Name (Column Name) in Notion Database
  • date: The value to compare the date property value against. (ISO 8601 date)
    • e.g.) "2021-05-10", "2021-05-10T12:00:00", "2021-10-15T12:00:00-07:00"
Source

pub fn date_is_empty<T: AsRef<str>>(property_name: T) -> Self

Returns database entries where the date property value contains no data.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn date_is_not_empty<T: AsRef<str>>(property_name: T) -> Self

Returns database entries where the date property value is not empty.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn date_next_month<T: AsRef<str>>(property_name: T) -> Self

A filter that limits the results to database entries where the date property value is within the next month.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn date_next_week<T: AsRef<str>>(property_name: T) -> Self

A filter that limits the results to database entries where the date property value is within the next week.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn date_next_year<T: AsRef<str>>(property_name: T) -> Self

A filter that limits the results to database entries where the date property value is within the next year.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn date_on_or_after<S: AsRef<str>, T: AsRef<str>>( property_name: S, date: T, ) -> Self

Returns database entries where the date property value is on or after the provided date.

  • property_name: Property Name (Column Name) in Notion Database
  • date: The value to compare the date property value against. (ISO 8601 date)
    • e.g.) "2021-05-10", "2021-05-10T12:00:00", "2021-10-15T12:00:00-07:00"
Source

pub fn date_on_or_before<S: AsRef<str>, T: AsRef<str>>( property_name: S, date: T, ) -> Self

Returns database entries where the date property value is on or before the provided date.

  • property_name: Property Name (Column Name) in Notion Database
  • date: The value to compare the date property value against. (ISO 8601 date)
    • e.g.) "2021-05-10", "2021-05-10T12:00:00", "2021-10-15T12:00:00-07:00"
Source

pub fn date_past_month<T: AsRef<str>>(property_name: T) -> Self

A filter that limits the results to database entries where the date property value is within the past month.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn date_past_week<T: AsRef<str>>(property_name: T) -> Self

A filter that limits the results to database entries where the date property value is within the past week.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn date_past_year<T: AsRef<str>>(property_name: T) -> Self

A filter that limits the results to database entries where the date property value is within the past year.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn date_this_week<T: AsRef<str>>(property_name: T) -> Self

A filter that limits the results to database entries where the date property value is this week.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn files_is_empty<T: AsRef<str>>(property_name: T) -> Self

Returns all database entries with an empty files property value.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn files_is_not_empty<T: AsRef<str>>(property_name: T) -> Self

Returns all entries with a populated files property value.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn formula_number_equals<T, N>(property_name: T, number: N) -> Self
where T: AsRef<str>, N: Into<f64>,

Source

pub fn formula_number_does_not_equal<T, N>(property_name: T, number: N) -> Self
where T: AsRef<str>, N: Into<f64>,

Source

pub fn formula_number_greater_than<T, N>(property_name: T, number: N) -> Self
where T: AsRef<str>, N: Into<f64>,

Source

pub fn formula_number_less_than<T, N>(property_name: T, number: N) -> Self
where T: AsRef<str>, N: Into<f64>,

Source

pub fn formula_number_greater_than_or_equal<T, N>( property_name: T, number: N, ) -> Self
where T: AsRef<str>, N: Into<f64>,

Source

pub fn formula_number_less_than_or_equal<T, N>( property_name: T, number: N, ) -> Self
where T: AsRef<str>, N: Into<f64>,

Source

pub fn formula_number_is_empty<T: AsRef<str>>(property_name: T) -> Self

Source

pub fn formula_number_is_not_empty<T: AsRef<str>>(property_name: T) -> Self

Source

pub fn formula_string_equals<T: AsRef<str>>(property_name: T, text: T) -> Self

Source

pub fn formula_string_does_not_equal<T: AsRef<str>>( property_name: T, text: T, ) -> Self

Source

pub fn formula_string_contains<T: AsRef<str>>(property_name: T, text: T) -> Self

Source

pub fn formula_string_does_not_contain<T: AsRef<str>>( property_name: T, text: T, ) -> Self

Source

pub fn formula_string_starts_with<T: AsRef<str>>( property_name: T, text: T, ) -> Self

Source

pub fn formula_string_ends_with<T: AsRef<str>>( property_name: T, text: T, ) -> Self

Source

pub fn formula_string_is_empty<T: AsRef<str>>(property_name: T) -> Self

Source

pub fn formula_string_is_not_empty<T: AsRef<str>>(property_name: T) -> Self

Source

pub fn formula_checkbox_equals<T: AsRef<str>>( property_name: T, checked: bool, ) -> Self

Source

pub fn formula_checkbox_is_checked<T: AsRef<str>>(property_name: T) -> Self

Source

pub fn formula_checkbox_is_not_checked<T: AsRef<str>>(property_name: T) -> Self

Source

pub fn formula_date_after<S: AsRef<str>, T: AsRef<str>>( property_name: S, date: T, ) -> Self

Source

pub fn formula_date_before<S: AsRef<str>, T: AsRef<str>>( property_name: S, date: T, ) -> Self

Source

pub fn formula_date_equals<S: AsRef<str>, T: AsRef<str>>( property_name: S, date: T, ) -> Self

Source

pub fn formula_date_is_empty<T: AsRef<str>>(property_name: T) -> Self

Source

pub fn formula_date_is_not_empty<T: AsRef<str>>(property_name: T) -> Self

Source

pub fn formula_date_next_month<T: AsRef<str>>(property_name: T) -> Self

Source

pub fn formula_date_next_week<T: AsRef<str>>(property_name: T) -> Self

Source

pub fn formula_date_next_year<T: AsRef<str>>(property_name: T) -> Self

Source

pub fn formula_date_on_or_after<S: AsRef<str>, T: AsRef<str>>( property_name: S, date: T, ) -> Self

Source

pub fn formula_date_on_or_before<S: AsRef<str>, T: AsRef<str>>( property_name: S, date: T, ) -> Self

Source

pub fn formula_date_past_month<T: AsRef<str>>(property_name: T) -> Self

Source

pub fn formula_date_past_week<T: AsRef<str>>(property_name: T) -> Self

Source

pub fn formula_date_past_year<T: AsRef<str>>(property_name: T) -> Self

Source

pub fn formula_date_this_week<T: AsRef<str>>(property_name: T) -> Self

Source

pub fn multi_select_contains<S, T>(property_name: S, option_name: T) -> Self
where S: AsRef<str>, T: AsRef<str>,

Returns database entries where the multi-select value matches the provided string.

  • property_name: Property Name (Column Name) in Notion Database
  • option_name: The string to compare the multi-select property value against.
Source

pub fn multi_select_does_not_contain<S, T>( property_name: S, option_name: T, ) -> Self
where S: AsRef<str>, T: AsRef<str>,

Returns database entries where the multi-select value does not match the provided string.

  • property_name: Property Name (Column Name) in Notion Database
  • option_name: The string to compare the multi-select property value against.
Source

pub fn multi_select_is_empty<S>(property_name: S) -> Self
where S: AsRef<str>,

Returns database entries where the multi-select property value is empty.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn multi_select_is_not_empty<S>(property_name: S) -> Self
where S: AsRef<str>,

Returns database entries where the multi-select property value is not empty.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn number_does_not_equal<T, N>(property_name: T, number: N) -> Self
where T: AsRef<str>, N: Into<f64>,

Returns database entries where the number property value differs from the provided number.

  • property_name: Property Name (Column Name) in Notion Database
  • number: The number to compare the number property value against.
Source

pub fn number_equals<T, N>(property_name: T, number: N) -> Self
where T: AsRef<str>, N: Into<f64>,

Returns database entries where the number property value is the same as the provided number.

  • property_name: Property Name (Column Name) in Notion Database
  • number: The number to compare the number property value against.
Source

pub fn number_greater_than<T, N>(property_name: T, number: N) -> Self
where T: AsRef<str>, N: Into<f64>,

Returns database entries where the number property value exceeds the provided number.

  • property_name: Property Name (Column Name) in Notion Database
  • number: The number to compare the number property value against.
Source

pub fn number_greater_than_or_equal_to<T, N>( property_name: T, number: N, ) -> Self
where T: AsRef<str>, N: Into<f64>,

Returns database entries where the number property value is equal to or exceeds the provided number.

  • property_name: Property Name (Column Name) in Notion Database
  • number: The number to compare the number property value against.
Source

pub fn number_is_empty<T>(property_name: T) -> Self
where T: AsRef<str>,

Returns database entries where the number property value does not contain any data.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn number_is_not_empty<T>(property_name: T) -> Self
where T: AsRef<str>,

Returns database entries where the number property value contains data.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn number_less_than<T, N>(property_name: T, number: N) -> Self
where T: AsRef<str>, N: Into<f64>,

Returns database entries where the number property value is less than the provided number.

  • property_name: Property Name (Column Name) in Notion Database
  • number: The number to compare the number property value against.
Source

pub fn number_less_than_or_equal_to<T, N>(property_name: T, number: N) -> Self
where T: AsRef<str>, N: Into<f64>,

Returns database entries where the number property value is equal to or is less than the provided number.

  • property_name: Property Name (Column Name) in Notion Database
  • number: The number to compare the number property value against.
Source

pub fn people_contains<S, T>(property_name: S, id: T) -> Self
where S: AsRef<str>, T: AsRef<str>,

Returns database entries where the people property value contains the provided string.

  • property_name: Property Name (Column Name) in Notion Database
  • id: The value to compare the people property value against.
Source

pub fn people_does_not_contain<S, T>(property_name: S, id: T) -> Self
where S: AsRef<str>, T: AsRef<str>,

Returns database entries where the people property value does not contain the provided string.

  • property_name: Property Name (Column Name) in Notion Database
  • id: The value to compare the people property value against.
Source

pub fn people_is_empty<T>(property_name: T) -> Self
where T: AsRef<str>,

Returns database entries where the people property value does not contain any data.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn people_is_not_empty<T>(property_name: T) -> Self
where T: AsRef<str>,

Returns database entries where the people property value is not empty.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn phone_number_contains<S, T>(property_name: S, phone_number: T) -> Self
where S: AsRef<str>, T: AsRef<str>,

Source

pub fn phone_number_does_not_contain<S, T>( property_name: S, phone_number: T, ) -> Self
where S: AsRef<str>, T: AsRef<str>,

Source

pub fn phone_number_does_not_equal<S, T>( property_name: S, phone_number: T, ) -> Self
where S: AsRef<str>, T: AsRef<str>,

Source

pub fn phone_number_ends_with<S, T>(property_name: S, phone_number: T) -> Self
where S: AsRef<str>, T: AsRef<str>,

Source

pub fn phone_number_equals<S, T>(property_name: S, phone_number: T) -> Self
where S: AsRef<str>, T: AsRef<str>,

Source

pub fn phone_number_is_empty<S>(property_name: S) -> Self
where S: AsRef<str>,

Source

pub fn phone_number_is_not_empty<S>(property_name: S) -> Self
where S: AsRef<str>,

Source

pub fn phone_number_starts_with<S, T>(property_name: S, phone_number: T) -> Self
where S: AsRef<str>, T: AsRef<str>,

Source

pub fn relation_contains<S, T>(property_name: S, uuid: T) -> Self
where S: AsRef<str>, T: AsRef<str>,

Returns database entries with a text property value that includes the provided string.

  • property_name: Property Name (Column Name) in Notion Database
  • uuid: The string to compare the text property value against.
Source

pub fn relation_does_not_contain<S, T>(property_name: S, uuid: T) -> Self
where S: AsRef<str>, T: AsRef<str>,

Returns database entries with a text property value that does not include the provided string.

  • property_name: Property Name (Column Name) in Notion Database
  • uuid: The string to compare the text property value against.
Source

pub fn relation_is_empty<S>(property_name: S) -> Self
where S: AsRef<str>,

Returns database entries with a text property value that is empty.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn relation_is_not_empty<S>(property_name: S) -> Self
where S: AsRef<str>,

Returns database entries with a text property value that contains data.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn rich_text_contains<S, T>(property_name: S, text: T) -> Self
where S: AsRef<str>, T: AsRef<str>,

Returns database entries with a text property value that includes the provided string.

  • property_name: Property Name (Column Name) in Notion Database
  • text: The string to compare the text property value against.
Source

pub fn rich_text_does_not_contain<S, T>(property_name: S, text: T) -> Self
where S: AsRef<str>, T: AsRef<str>,

Returns database entries with a text property value that does not include the provided string.

  • property_name: Property Name (Column Name) in Notion Database
  • text: The string to compare the text property value against.
Source

pub fn rich_text_does_not_equal<S, T>(property_name: S, text: T) -> Self
where S: AsRef<str>, T: AsRef<str>,

Returns database entries with a text property value that does not match the provided string.

  • property_name: Property Name (Column Name) in Notion Database
  • text: The string to compare the text property value against.
Source

pub fn rich_text_ends_with<S, T>(property_name: S, text: T) -> Self
where S: AsRef<str>, T: AsRef<str>,

Returns database entries with a text property value that ends with the provided string.

  • property_name: Property Name (Column Name) in Notion Database
  • text: The string to compare the text property value against.
Source

pub fn rich_text_equals<S, T>(property_name: S, text: T) -> Self
where S: AsRef<str>, T: AsRef<str>,

Returns database entries with a text property value that matches the provided string.

  • property_name: Property Name (Column Name) in Notion Database
  • text: The string to compare the text property value against.
Source

pub fn rich_text_is_empty<S>(property_name: S) -> Self
where S: AsRef<str>,

Returns database entries with a text property value that is empty.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn rich_text_is_not_empty<S>(property_name: S) -> Self
where S: AsRef<str>,

Returns database entries with a text property value that contains data.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn rich_text_starts_with<S, T>(property_name: S, text: T) -> Self
where S: AsRef<str>, T: AsRef<str>,

Returns database entries with a text property value that starts with the provided string.

  • property_name: Property Name (Column Name) in Notion Database
  • text: The string to compare the text property value against.
Source

pub fn rollup_any<S>(property_name: S, filter: Filter) -> Self
where S: AsRef<str>,

Returns database entries where the rollup property value matches the provided criteria.

Source

pub fn rollup_every<S>(property_name: S, filter: Filter) -> Self
where S: AsRef<str>,

Returns database entries where every rollup property value matches the provided criteria.

Source

pub fn rollup_none<S>(property_name: S, filter: Filter) -> Self
where S: AsRef<str>,

Returns database entries where no rollup property value matches the provided criteria.

Source

pub fn select_does_not_equal<S, T>(property_name: S, option_name: T) -> Self
where S: AsRef<str>, T: AsRef<str>,

Returns database entries where the select property value matches the provided string.

  • property_name: Property Name (Column Name) in Notion Database
  • option_name: The string to compare the select property value against.
Source

pub fn select_equals<S, T>(property_name: S, option_name: T) -> Self
where S: AsRef<str>, T: AsRef<str>,

Returns database entries where the select property value does not match the provided string.

  • property_name: Property Name (Column Name) in Notion Database
  • option_name: The string to compare the select property value against.
Source

pub fn select_is_empty<S>(property_name: S) -> Self
where S: AsRef<str>,

Returns database entries where the select property value is empty.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn select_is_not_empty<S>(property_name: S) -> Self
where S: AsRef<str>,

Returns database entries where the select property value is not empty.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn status_does_not_equal<S, T>(property_name: S, option_name: T) -> Self
where S: AsRef<str>, T: AsRef<str>,

Returns database entries where the status property value matches the provided string.

  • property_name: Property Name (Column Name) in Notion Database
  • option_name: The string to compare the status property value against.
Source

pub fn status_equals<S, T>(property_name: S, option_name: T) -> Self
where S: AsRef<str>, T: AsRef<str>,

Returns database entries where the status property value does not match the provided string.

  • property_name: Property Name (Column Name) in Notion Database
  • option_name: The string to compare the status property value against.
Source

pub fn status_is_empty<S>(property_name: S) -> Self
where S: AsRef<str>,

Returns database entries where the status property value is empty.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn status_is_not_empty<S>(property_name: S) -> Self
where S: AsRef<str>,

Returns database entries where the status property value is not empty.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn timestamp_after<T: AsRef<str>>(timestamp: T) -> Self

Returns database entries where the timestamp property value is after the provided timestamp.

  • property_name: Property Name (Column Name) in Notion Database
  • timestamp: ISO 8601 timestamp
    • e.g.) "2021-05-10", "2021-05-10T12:00:00", "2021-10-15T12:00:00-07:00"
Source

pub fn timestamp_before<T: AsRef<str>>(timestamp: T) -> Self

Returns database entries where the timestamp property value is before the provided timestamp.

  • property_name: Property Name (Column Name) in Notion Database
  • timestamp: The value to compare the timestamp property value against. (ISO 8601 timestamp)
    • e.g.) "2021-05-10", "2021-05-10T12:00:00", "2021-10-15T12:00:00-07:00"
Source

pub fn timestamp_equals<T: AsRef<str>>(timestamp: T) -> Self

Returns database entries where the timestamp property value is the provided timestamp.

  • property_name: Property Name (Column Name) in Notion Database
  • timestamp: The value to compare the timestamp property value against. (ISO 8601 timestamp)
    • e.g.) "2021-05-10", "2021-05-10T12:00:00", "2021-10-15T12:00:00-07:00"
Source

pub fn timestamp_is_empty() -> Self

Returns database entries where the timestamp property value contains no data.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn timestamp_is_not_empty() -> Self

Returns database entries where the timestamp property value is not empty.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn timestamp_next_month() -> Self

A filter that limits the results to database entries where the timestamp property value is within the next month.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn timestamp_next_week() -> Self

A filter that limits the results to database entries where the timestamp property value is within the next week.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn timestamp_next_year() -> Self

A filter that limits the results to database entries where the timestamp property value is within the next year.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn timestamp_on_or_after<T: AsRef<str>>(timestamp: T) -> Self

Returns database entries where the timestamp property value is on or after the provided timestamp.

  • property_name: Property Name (Column Name) in Notion Database
  • timestamp: The value to compare the timestamp property value against. (ISO 8601 timestamp)
    • e.g.) "2021-05-10", "2021-05-10T12:00:00", "2021-10-15T12:00:00-07:00"
Source

pub fn timestamp_on_or_before<T: AsRef<str>>(timestamp: T) -> Self

Returns database entries where the timestamp property value is on or before the provided timestamp.

  • property_name: Property Name (Column Name) in Notion Database
  • timestamp: The value to compare the timestamp property value against. (ISO 8601 timestamp)
    • e.g.) "2021-05-10", "2021-05-10T12:00:00", "2021-10-15T12:00:00-07:00"
Source

pub fn timestamp_past_month() -> Self

A filter that limits the results to database entries where the timestamp property value is within the past month.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn timestamp_past_week() -> Self

A filter that limits the results to database entries where the timestamp property value is within the past week.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn timestamp_past_year() -> Self

A filter that limits the results to database entries where the timestamp property value is within the past year.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn timestamp_this_week() -> Self

A filter that limits the results to database entries where the timestamp property value is this week.

  • property_name: Property Name (Column Name) in Notion Database
Source

pub fn unique_id_does_not_equal<T>(property_name: T, unique_id: u64) -> Self
where T: AsRef<str>,

Returns database entries where the unique_id property value differs from the provided unique_id.

  • property_name: Property Name (Column Name) in Notion Database
  • unique_id: The unique_id to compare the unique_id property value against.
Source

pub fn unique_id_equals<T>(property_name: T, unique_id: u64) -> Self
where T: AsRef<str>,

Returns database entries where the unique_id property value is the same as the provided unique_id.

  • property_name: Property Name (Column Name) in Notion Database
  • unique_id: The unique_id to compare the unique_id property value against.
Source

pub fn unique_id_greater_than<T>(property_name: T, unique_id: u64) -> Self
where T: AsRef<str>,

Returns database entries where the unique_id property value exceeds the provided unique_id.

  • property_name: Property Name (Column Name) in Notion Database
  • unique_id: The unique_id to compare the unique_id property value against.
Source

pub fn unique_id_greater_than_or_equal_to<T>( property_name: T, unique_id: u64, ) -> Self
where T: AsRef<str>,

Returns database entries where the unique_id property value is equal to or exceeds the provided unique_id.

  • property_name: Property Name (Column Name) in Notion Database
  • unique_id: The unique_id to compare the unique_id property value against.
Source

pub fn unique_id_less_than<T>(property_name: T, unique_id: u64) -> Self
where T: AsRef<str>,

Returns database entries where the unique_id property value is less than the provided unique_id.

  • property_name: Property Name (Column Name) in Notion Database
  • unique_id: The unique_id to compare the unique_id property value against.
Source

pub fn unique_id_less_than_or_equal_to<T>( property_name: T, unique_id: u64, ) -> Self
where T: AsRef<str>,

Returns database entries where the unique_id property value is equal to or is less than the provided unique_id.

  • property_name: Property Name (Column Name) in Notion Database
  • unique_id: The unique_id to compare the unique_id property value against.

Trait Implementations§

Source§

impl Clone for Filter

Source§

fn clone(&self) -> Filter

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Filter

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Filter

Source§

fn default() -> Filter

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Filter

Source§

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 Filter

Source§

fn eq(&self, other: &Filter) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Filter

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Filter

Auto Trait Implementations§

§

impl Freeze for Filter

§

impl RefUnwindSafe for Filter

§

impl Send for Filter

§

impl Sync for Filter

§

impl Unpin for Filter

§

impl UnwindSafe for Filter

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,