pub struct FunctionRef {
pub name: String,
pub version: Option<String>,
}Expand description
A reference to a function (a None version = the function’s active version).
Fields§
§name: StringThe function name (site-scoped names are <site>/<name>).
version: Option<String>A specific version id, or None for the active version.
Trait Implementations§
Source§impl Clone for FunctionRef
impl Clone for FunctionRef
Source§impl Debug for FunctionRef
impl Debug for FunctionRef
Source§impl<'de> Deserialize<'de> for FunctionRef
impl<'de> Deserialize<'de> for FunctionRef
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FunctionRef
Source§impl PartialEq for FunctionRef
impl PartialEq for FunctionRef
Source§impl Serialize for FunctionRef
impl Serialize for FunctionRef
impl StructuralPartialEq for FunctionRef
Auto Trait Implementations§
impl Freeze for FunctionRef
impl RefUnwindSafe for FunctionRef
impl Send for FunctionRef
impl Sync for FunctionRef
impl Unpin for FunctionRef
impl UnsafeUnpin for FunctionRef
impl UnwindSafe for FunctionRef
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.