Struct wasmcloud_control_interface::Link
source · #[non_exhaustive]pub struct Link { /* private fields */ }
Expand description
A link definition between a source and target component (component or provider) on a given interface.
An Link
connects one component’s import to another
component’s export, specifying the configuration each component needs in order to execute
the request, and represents an operator’s intent to allow the source to invoke the target.
This link definition is distinct from the one in wasmcloud_core
, in that it is
represents a link at the point in time before it’s configuration is fully resolved
Implementations§
source§impl Link
impl Link
pub fn source_id(&self) -> &str
pub fn target(&self) -> &str
pub fn name(&self) -> &str
pub fn wit_namespace(&self) -> &str
pub fn wit_package(&self) -> &str
pub fn interfaces(&self) -> &Vec<String>
pub fn source_config(&self) -> &Vec<String>
pub fn target_config(&self) -> &Vec<String>
pub fn builder() -> LinkBuilder
Trait Implementations§
source§impl<'de> Deserialize<'de> for Link
impl<'de> Deserialize<'de> for Link
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 Link
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnwindSafe for Link
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.