pub struct GetEventsAndInstancesQuery {
pub time_min: Option<Timestamp>,
pub time_max: Option<Timestamp>,
pub created_before: Option<Timestamp>,
pub created_after: Option<Timestamp>,
pub invitees_max: Option<PageSize>,
pub instances_max: ItemCount,
pub favorites: bool,
pub invite_status: Vec<EventInviteStatus>,
pub per_page: Option<PageSize>,
pub after: Option<Cursor<GetEventsAndInstancesCursorData>>,
pub adhoc: Option<bool>,
pub time_independent: Option<bool>,
}Expand description
Path query parameters of the GET /events/instances endpoint
Allows for customization in the search for events
Fields§
§time_min: Option<Timestamp>Optional minimum time in which the event or instance happens
time_max: Option<Timestamp>Optional maximum time in which the event or instance happens
created_before: Option<Timestamp>Only query events created before this timestamp
created_after: Option<Timestamp>Only query events created after this timestamp
invitees_max: Option<PageSize>Maximum number of invitees to return inside the event resource
Default value is 0
instances_max: ItemCountMaximum number of instances to return for each recurring event
Default value is 0
favorites: boolReturn only favorite events
invite_status: Vec<EventInviteStatus>Filter the events by invite status
per_page: Option<PageSize>How many events and instances to return per page
after: Option<Cursor<GetEventsAndInstancesCursorData>>Cursor token to get the next page of events and instances
Returned by the endpoint if the maximum number of events and instances per page has been hit
adhoc: Option<bool>Only get events that are either marked as adhoc or non-adhoc
If present, all adhoc events will be returned when true, all non-adhoc
events will be returned when false. If not present, all events will
be returned regardless of their adhoc flag value.
time_independent: Option<bool>Only get events that are either time-independent or time-dependent
If present, all time-independent events will be returned when true,
all time-dependent events will be returned when false. If absent,
all events will be returned regardless of their time dependency.
Trait Implementations§
Source§impl Clone for GetEventsAndInstancesQuery
impl Clone for GetEventsAndInstancesQuery
Source§fn clone(&self) -> GetEventsAndInstancesQuery
fn clone(&self) -> GetEventsAndInstancesQuery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GetEventsAndInstancesQuery
impl Debug for GetEventsAndInstancesQuery
Source§impl Default for GetEventsAndInstancesQuery
impl Default for GetEventsAndInstancesQuery
Source§fn default() -> GetEventsAndInstancesQuery
fn default() -> GetEventsAndInstancesQuery
Source§impl<'de> Deserialize<'de> for GetEventsAndInstancesQuery
impl<'de> Deserialize<'de> for GetEventsAndInstancesQuery
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>,
Source§impl IntoParams for GetEventsAndInstancesQuery
impl IntoParams for GetEventsAndInstancesQuery
Source§fn into_params(
parameter_in_provider: impl Fn() -> Option<ParameterIn>,
) -> Vec<Parameter>
fn into_params( parameter_in_provider: impl Fn() -> Option<ParameterIn>, ) -> Vec<Parameter>
Vec of openapi::path::Parameters to caller. The result is used in utoipa-gen library to
provide OpenAPI parameter information for the endpoint using the parameters.impl Eq for GetEventsAndInstancesQuery
impl StructuralPartialEq for GetEventsAndInstancesQuery
Auto Trait Implementations§
impl Freeze for GetEventsAndInstancesQuery
impl RefUnwindSafe for GetEventsAndInstancesQuery
impl Send for GetEventsAndInstancesQuery
impl Sync for GetEventsAndInstancesQuery
impl Unpin for GetEventsAndInstancesQuery
impl UnwindSafe for GetEventsAndInstancesQuery
Blanket Implementations§
Source§impl<T> AggregateExpressionMethods for T
impl<T> AggregateExpressionMethods for T
Source§fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
DISTINCT modifier for aggregate functions Read moreSource§fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
ALL modifier for aggregate functions Read moreSource§fn aggregate_filter<P>(self, f: P) -> Self::Output
fn aggregate_filter<P>(self, f: P) -> Self::Output
Source§fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
&self to an expression for Diesel’s query builder. Read more