pub struct FunctionRecord {
pub id: Uuid,
pub tenant_id: TenantId,
pub name: String,
pub wasm_bytes: Arc<[u8]>,
pub created_unix_ms: u64,
}Expand description
A deployed function as held in memory by the API gateway.
wasm_bytes is intentionally excluded from the serialised wire form: the
API never echoes raw module bytes back to callers. The storage type is
Arc<[u8]> so concurrent invocations share a single allocation rather
than cloning the bytes on every spawn.
Fields§
§id: UuidServer-assigned identifier.
tenant_id: TenantIdTenant that deployed this function. Set from the request tenant at
POST /functions time and never mutated. The invoke / delete handlers
compare this against the request’s claimed tenant so a wildcard-scoped
caller from tenant B cannot drive tenant A’s record (api S-IDOR).
name: StringTenant-supplied display name.
wasm_bytes: Arc<[u8]>Decoded Wasm bytes, refcounted. Not serialised — see struct-level doc.
created_unix_ms: u64Millisecond-precision Unix timestamp of deploy.
Trait Implementations§
Source§impl Clone for FunctionRecord
impl Clone for FunctionRecord
Source§fn clone(&self) -> FunctionRecord
fn clone(&self) -> FunctionRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FunctionRecord
impl Debug for FunctionRecord
Source§impl<'de> Deserialize<'de> for FunctionRecord
impl<'de> Deserialize<'de> for FunctionRecord
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 FunctionRecord
impl RefUnwindSafe for FunctionRecord
impl Send for FunctionRecord
impl Sync for FunctionRecord
impl Unpin for FunctionRecord
impl UnsafeUnpin for FunctionRecord
impl UnwindSafe for FunctionRecord
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,
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>
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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 more