pub struct EventExceptionResource {Show 16 fields
pub id: EventAndInstanceId,
pub recurring_event_id: EventId,
pub instance_id: InstanceId,
pub created_by: PublicUserProfile,
pub created_at: Timestamp,
pub updated_by: PublicUserProfile,
pub updated_at: Timestamp,
pub title: Option<EventTitle>,
pub description: Option<EventDescription>,
pub is_all_day: Option<bool>,
pub starts_at: Option<DateTimeTz>,
pub ends_at: Option<DateTimeTz>,
pub original_starts_at: DateTimeTz,
pub type_: EventType,
pub status: EventStatus,
pub can_edit: bool,
}Expand description
Event exception resource
Overrides event properties for a event recurrence. May only exist for events of type recurring.
Fields§
§id: EventAndInstanceIdOpaque ID of the exception
recurring_event_id: EventIdID of the event the exception belongs to
instance_id: InstanceIdID of the instance the exception overrides
created_by: PublicUserProfilePublic user profile of the user which created the exception
created_at: TimestampTimestamp of the exceptions creation
updated_by: PublicUserProfilePublic user profile of the user which last updated the exception
updated_at: TimestampTimestamp of the exceptions last update
title: Option<EventTitle>Override the title of the instance
description: Option<EventDescription>Override the description of the instance
is_all_day: Option<bool>Override the is_all_day property of the instance
starts_at: Option<DateTimeTz>Override the starts_at time of the instance
ends_at: Option<DateTimeTz>Override the ends_at time of the instance
original_starts_at: DateTimeTzThe starts_at of the instance this exception modifies. Used to match the exception the instance
type_: EventTypeMust always be exception
status: EventStatusOverride the status of the event instance
This can be used to cancel a occurrence of an event
can_edit: boolCan the current user edit this resource
Trait Implementations§
Source§impl Clone for EventExceptionResource
impl Clone for EventExceptionResource
Source§fn clone(&self) -> EventExceptionResource
fn clone(&self) -> EventExceptionResource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ComposeSchema for EventExceptionResource
impl ComposeSchema for EventExceptionResource
Source§impl Debug for EventExceptionResource
impl Debug for EventExceptionResource
Source§impl<'de> Deserialize<'de> for EventExceptionResource
impl<'de> Deserialize<'de> for EventExceptionResource
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 ExampleData for EventExceptionResource
impl ExampleData for EventExceptionResource
Source§fn example_data() -> Self
fn example_data() -> Self
Source§impl PartialEq for EventExceptionResource
impl PartialEq for EventExceptionResource
Source§impl Serialize for EventExceptionResource
impl Serialize for EventExceptionResource
Source§impl ToSchema for EventExceptionResource
impl ToSchema for EventExceptionResource
impl Eq for EventExceptionResource
impl StructuralPartialEq for EventExceptionResource
Auto Trait Implementations§
impl Freeze for EventExceptionResource
impl RefUnwindSafe for EventExceptionResource
impl Send for EventExceptionResource
impl Sync for EventExceptionResource
impl Unpin for EventExceptionResource
impl UnwindSafe for EventExceptionResource
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