pub struct FunctionSpec {
pub name: String,
pub component: String,
pub config: FunctionConfig,
pub lifecycle: Lifecycle,
}Expand description
The desugared shape of a function derived from a site’s DeployConfig. The
component is still a path within the deploy — its content hash / version
id is assigned at sync, when the blob is uploaded (so this stays a pure
config→shape transform, testable without a blob store).
Fields§
§name: StringSite-scoped function name (see handler_name / consumer_name).
component: StringThe component path within the deploy.
config: FunctionConfigBinding/capability config.
lifecycle: LifecycleVersion lifecycle (deploy-scoped functions are DeployPinned).
Trait Implementations§
Source§impl Clone for FunctionSpec
impl Clone for FunctionSpec
Source§fn clone(&self) -> FunctionSpec
fn clone(&self) -> FunctionSpec
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 FunctionSpec
impl Debug for FunctionSpec
impl Eq for FunctionSpec
Source§impl PartialEq for FunctionSpec
impl PartialEq for FunctionSpec
impl StructuralPartialEq for FunctionSpec
Auto Trait Implementations§
impl Freeze for FunctionSpec
impl RefUnwindSafe for FunctionSpec
impl Send for FunctionSpec
impl Sync for FunctionSpec
impl Unpin for FunctionSpec
impl UnsafeUnpin for FunctionSpec
impl UnwindSafe for FunctionSpec
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.