pub struct LandscapeFunction {
pub id: LandscapeFunctionId,
pub owner: String,
pub inputs: Vec<LandscapePort>,
pub outputs: Vec<LandscapePort>,
pub stability: LandscapeStability,
}Expand description
Curated function metadata for one operation.
Fields§
§id: LandscapeFunctionId§owner: String§inputs: Vec<LandscapePort>§outputs: Vec<LandscapePort>§stability: LandscapeStabilityImplementations§
Source§impl LandscapeFunction
impl LandscapeFunction
pub fn new(id: impl Into<LandscapeFunctionId>, owner: impl Into<String>) -> Self
pub fn input(self, port: LandscapePort) -> Self
pub fn output(self, port: LandscapePort) -> Self
pub fn stability(self, stability: LandscapeStability) -> Self
Trait Implementations§
Source§impl Clone for LandscapeFunction
impl Clone for LandscapeFunction
Source§fn clone(&self) -> LandscapeFunction
fn clone(&self) -> LandscapeFunction
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 LandscapeFunction
impl Debug for LandscapeFunction
Source§impl<'de> Deserialize<'de> for LandscapeFunction
impl<'de> Deserialize<'de> for LandscapeFunction
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 LandscapeFunction
Source§impl PartialEq for LandscapeFunction
impl PartialEq for LandscapeFunction
Source§fn eq(&self, other: &LandscapeFunction) -> bool
fn eq(&self, other: &LandscapeFunction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LandscapeFunction
impl Serialize for LandscapeFunction
impl StructuralPartialEq for LandscapeFunction
Auto Trait Implementations§
impl Freeze for LandscapeFunction
impl RefUnwindSafe for LandscapeFunction
impl Send for LandscapeFunction
impl Sync for LandscapeFunction
impl Unpin for LandscapeFunction
impl UnsafeUnpin for LandscapeFunction
impl UnwindSafe for LandscapeFunction
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