pub struct LinkProperty {
pub namespace: String,
pub package: String,
pub interfaces: Vec<String>,
pub source: Option<ConfigDefinition>,
pub target: TargetConfig,
pub name: Option<String>,
pub source_config: Option<Vec<ConfigProperty>>,
pub target_config: Option<Vec<ConfigProperty>>,
}
Expand description
Properties for links
Fields§
§namespace: String
WIT namespace for the link
package: String
WIT package for the link
interfaces: Vec<String>
WIT interfaces for the link
source: Option<ConfigDefinition>
Configuration to apply to the source of the link
target: TargetConfig
Configuration to apply to the target of the link
name: Option<String>
The name of this link
source_config: Option<Vec<ConfigProperty>>
👎Deprecated since 0.13.0
§target_config: Option<Vec<ConfigProperty>>
👎Deprecated since 0.13.0
Trait Implementations§
Source§impl Clone for LinkProperty
impl Clone for LinkProperty
Source§fn clone(&self) -> LinkProperty
fn clone(&self) -> LinkProperty
Returns a copy 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 ComposeSchema for LinkProperty
impl ComposeSchema for LinkProperty
Source§impl Debug for LinkProperty
impl Debug for LinkProperty
Source§impl Default for LinkProperty
impl Default for LinkProperty
Source§fn default() -> LinkProperty
fn default() -> LinkProperty
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LinkProperty
impl<'de> Deserialize<'de> for LinkProperty
Source§fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<LinkProperty> for LinkProperty
impl From<LinkProperty> for LinkProperty
Source§fn from(property: LinkProperty) -> Self
fn from(property: LinkProperty) -> Self
Converts to this type from the input type.
Source§impl From<LinkProperty> for LinkProperty
impl From<LinkProperty> for LinkProperty
Source§fn from(property: LinkProperty) -> Self
fn from(property: LinkProperty) -> Self
Converts to this type from the input type.
Source§impl From<LinkProperty> for TraitProperty
impl From<LinkProperty> for TraitProperty
Source§fn from(value: LinkProperty) -> Self
fn from(value: LinkProperty) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for LinkProperty
impl JsonSchema for LinkProperty
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for LinkProperty
impl PartialEq for LinkProperty
Source§impl Serialize for LinkProperty
impl Serialize for LinkProperty
Source§impl ToSchema for LinkProperty
impl ToSchema for LinkProperty
impl Eq for LinkProperty
impl StructuralPartialEq for LinkProperty
Auto Trait Implementations§
impl Freeze for LinkProperty
impl RefUnwindSafe for LinkProperty
impl Send for LinkProperty
impl Sync for LinkProperty
impl Unpin for LinkProperty
impl UnwindSafe for LinkProperty
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.