pub struct AttachedFunction {Show 18 fields
pub id: AttachedFunctionUuid,
pub name: String,
pub function_id: Uuid,
pub input_collection_id: CollectionUuid,
pub output_collection_name: String,
pub output_collection_id: Option<CollectionUuid>,
pub params: Option<String>,
pub tenant_id: String,
pub database_id: String,
pub last_run: Option<SystemTime>,
pub next_run: SystemTime,
pub completion_offset: u64,
pub min_records_for_invocation: u64,
pub is_deleted: bool,
pub created_at: SystemTime,
pub updated_at: SystemTime,
pub next_nonce: NonceUuid,
pub lowest_live_nonce: Option<NonceUuid>,
}Fields§
§id: AttachedFunctionUuidUnique identifier for the attached function
name: StringHuman-readable name for the attached function instance
function_id: UuidUUID of the function/built-in definition this attached function uses
input_collection_id: CollectionUuidSource collection that triggers the attached function
output_collection_name: StringName of target collection where attached function output is stored
output_collection_id: Option<CollectionUuid>ID of the output collection (lazily filled in after creation)
params: Option<String>Optional JSON parameters for the function
tenant_id: StringTenant name this attached function belongs to (despite field name, this is a name not a UUID)
database_id: StringDatabase name this attached function belongs to (despite field name, this is a name not a UUID)
last_run: Option<SystemTime>Timestamp of the last successful function run
next_run: SystemTimeTimestamp when the attached function should next run
completion_offset: u64Completion offset: the WAL position up to which the attached function has processed records
min_records_for_invocation: u64Minimum number of new records required before the attached function runs again
is_deleted: boolWhether the attached function has been soft-deleted
created_at: SystemTimeTimestamp when the attached function was created
updated_at: SystemTimeTimestamp when the attached function was last updated
next_nonce: NonceUuidNext nonce (UUIDv7) for execution tracking
lowest_live_nonce: Option<NonceUuid>Lowest live nonce (UUIDv7) - marks the earliest epoch that still needs verification When lowest_live_nonce is Some and < next_nonce, it indicates finish failed and we should skip execution and only run the scout_logs recheck phase None indicates the attached function has never been scheduled (brand new)
Trait Implementations§
Source§impl Clone for AttachedFunction
impl Clone for AttachedFunction
Source§fn clone(&self) -> AttachedFunction
fn clone(&self) -> AttachedFunction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AttachedFunction
impl Debug for AttachedFunction
Source§impl<'de> Deserialize<'de> for AttachedFunction
impl<'de> Deserialize<'de> for AttachedFunction
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>,
Auto Trait Implementations§
impl Freeze for AttachedFunction
impl RefUnwindSafe for AttachedFunction
impl Send for AttachedFunction
impl Sync for AttachedFunction
impl Unpin for AttachedFunction
impl UnwindSafe for AttachedFunction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.