pub struct AttachedFunctionApiResponse {
pub id: AttachedFunctionUuid,
pub name: String,
pub function_name: String,
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 completion_offset: u64,
pub min_records_for_invocation: u64,
}Expand description
API response struct for attached function with function_name instead of function_id
Fields§
§id: AttachedFunctionUuidUnique identifier for the attached function
name: StringHuman-readable name for the attached function instance
function_name: StringName of the function (e.g., “record_counter”, “statistics”)
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
database_id: StringDatabase name this attached function belongs to
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
Implementations§
Source§impl AttachedFunctionApiResponse
impl AttachedFunctionApiResponse
Sourcepub fn from_attached_function(
af: AttachedFunction,
) -> Result<Self, GetAttachedFunctionError>
pub fn from_attached_function( af: AttachedFunction, ) -> Result<Self, GetAttachedFunctionError>
Convert an AttachedFunction to the API response format, mapping function_id UUID to function_name
Trait Implementations§
Source§impl Clone for AttachedFunctionApiResponse
impl Clone for AttachedFunctionApiResponse
Source§fn clone(&self) -> AttachedFunctionApiResponse
fn clone(&self) -> AttachedFunctionApiResponse
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AttachedFunctionApiResponse
impl Debug for AttachedFunctionApiResponse
Auto Trait Implementations§
impl Freeze for AttachedFunctionApiResponse
impl RefUnwindSafe for AttachedFunctionApiResponse
impl Send for AttachedFunctionApiResponse
impl Sync for AttachedFunctionApiResponse
impl Unpin for AttachedFunctionApiResponse
impl UnwindSafe for AttachedFunctionApiResponse
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)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.