pub struct SessionSchedule {Show 17 fields
pub id: ScheduleId,
pub session_id: SessionId,
pub owner_principal_id: PrincipalId,
pub resolved_owner_user_id: Option<Uuid>,
pub owner: Option<PrincipalSummary>,
pub effective_owner: Option<PrincipalSummary>,
pub description: String,
pub cron_expression: Option<String>,
pub scheduled_at: Option<DateTime<Utc>>,
pub timezone: String,
pub enabled: bool,
pub schedule_type: ScheduleType,
pub next_trigger_at: Option<DateTime<Utc>>,
pub last_triggered_at: Option<DateTime<Utc>>,
pub trigger_count: u32,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
A session-scoped schedule.
Fields§
§id: ScheduleIdUnique identifier (format: sched_{32-hex}).
session_id: SessionIdSession this schedule belongs to.
owner_principal_id: PrincipalIdOwning principal for this schedule.
resolved_owner_user_id: Option<Uuid>Denormalized effective human owner of the owning principal lineage.
owner: Option<PrincipalSummary>Owning principal summary.
effective_owner: Option<PrincipalSummary>Effective human owner summary.
description: StringWhat the agent should do when the schedule fires.
cron_expression: Option<String>Cron expression for recurring schedules (None for one-shot).
scheduled_at: Option<DateTime<Utc>>One-shot trigger time (None for recurring).
timezone: StringIANA timezone for cron interpretation.
enabled: boolWhether the schedule is active.
schedule_type: ScheduleTypeComputed type based on cron_expression vs scheduled_at.
next_trigger_at: Option<DateTime<Utc>>Next computed trigger time.
last_triggered_at: Option<DateTime<Utc>>Last time this schedule fired.
trigger_count: u32Total number of times this schedule has fired.
created_at: DateTime<Utc>§updated_at: DateTime<Utc>Implementations§
Source§impl SessionSchedule
impl SessionSchedule
Sourcepub fn derive_type(cron_expression: &Option<String>) -> ScheduleType
pub fn derive_type(cron_expression: &Option<String>) -> ScheduleType
Derive schedule type from fields.
Trait Implementations§
Source§impl Clone for SessionSchedule
impl Clone for SessionSchedule
Source§fn clone(&self) -> SessionSchedule
fn clone(&self) -> SessionSchedule
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 Debug for SessionSchedule
impl Debug for SessionSchedule
Source§impl<'de> Deserialize<'de> for SessionSchedule
impl<'de> Deserialize<'de> for SessionSchedule
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SessionSchedule
impl RefUnwindSafe for SessionSchedule
impl Send for SessionSchedule
impl Sync for SessionSchedule
impl Unpin for SessionSchedule
impl UnsafeUnpin for SessionSchedule
impl UnwindSafe for SessionSchedule
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
Converts
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>
Converts
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request