pub struct NewTrigger<'a> {
pub id: &'a str,
pub kind: TriggerKind,
pub ticket_id: Option<&'a str>,
pub project_id: Option<&'a str>,
pub eligible_at_ms: Option<i64>,
pub interval_ms: Option<i64>,
}Expand description
A trigger row to be inserted. The id is supplied because minting it is a
separate reservation; [enqueue] is the verb that does both.
Fields§
§id: &'a str§kind: TriggerKind§ticket_id: Option<&'a str>§project_id: Option<&'a str>§eligible_at_ms: Option<i64>§interval_ms: Option<i64>Trait Implementations§
Source§impl<'a> Clone for NewTrigger<'a>
impl<'a> Clone for NewTrigger<'a>
Source§fn clone(&self) -> NewTrigger<'a>
fn clone(&self) -> NewTrigger<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for NewTrigger<'a>
impl<'a> Debug for NewTrigger<'a>
impl<'a> Eq for NewTrigger<'a>
Source§impl<'a> PartialEq for NewTrigger<'a>
impl<'a> PartialEq for NewTrigger<'a>
impl<'a> StructuralPartialEq for NewTrigger<'a>
Auto Trait Implementations§
impl<'a> Freeze for NewTrigger<'a>
impl<'a> RefUnwindSafe for NewTrigger<'a>
impl<'a> Send for NewTrigger<'a>
impl<'a> Sync for NewTrigger<'a>
impl<'a> Unpin for NewTrigger<'a>
impl<'a> UnsafeUnpin for NewTrigger<'a>
impl<'a> UnwindSafe for NewTrigger<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.