pub struct FunctionVersion {
pub environment: HashMap<String, EnvironmentValue>,
/* private fields */
}Expand description
A configuration set representing a specific version of a Function in Momento.
Fields§
§environment: HashMap<String, EnvironmentValue>The environment variables available to this function via the WASI environment interface.
Implementations§
Source§impl FunctionVersion
impl FunctionVersion
Sourcepub fn version_id(&self) -> &FunctionVersionId
pub fn version_id(&self) -> &FunctionVersionId
The unique identifier for this function version.
Sourcepub fn wasm_version_id(&self) -> &WasmVersionId
pub fn wasm_version_id(&self) -> &WasmVersionId
The wasm ID this function uses.
Sourcepub fn environment(&self) -> &HashMap<String, EnvironmentValue>
pub fn environment(&self) -> &HashMap<String, EnvironmentValue>
The environment variables available to this function via the WASI environment interface.
Trait Implementations§
Source§impl Clone for FunctionVersion
impl Clone for FunctionVersion
Source§fn clone(&self) -> FunctionVersion
fn clone(&self) -> FunctionVersion
Returns a duplicate of the value. Read more
1.0.0 · 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 FunctionVersion
impl Debug for FunctionVersion
Source§impl From<FunctionVersion> for FunctionVersion
impl From<FunctionVersion> for FunctionVersion
Source§fn from(proto: FunctionVersion) -> Self
fn from(proto: FunctionVersion) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FunctionVersion
impl PartialEq for FunctionVersion
impl Eq for FunctionVersion
impl StructuralPartialEq for FunctionVersion
Auto Trait Implementations§
impl Freeze for FunctionVersion
impl RefUnwindSafe for FunctionVersion
impl Send for FunctionVersion
impl Sync for FunctionVersion
impl Unpin for FunctionVersion
impl UnsafeUnpin for FunctionVersion
impl UnwindSafe for FunctionVersion
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§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.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> 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