Skip to navigation

Struct Service Reference

View as Markdown

Generated from cargo doc --no-deps -p nemo-fabric-core.

pub struct ServiceReference {
    pub adapter_id: String,
    pub service_type: String,
    pub connection: BTreeMap<String, Value>,
    pub metadata: BTreeMap<String, Value>,
}

Caller-supplied reference to an already-running service.

Fields

adapter_id: String

Adapter that understands and connects to the service.

service_type: String

Stable service type understood by the selected adapter.

connection: BTreeMap<String, Value>

Non-secret connection fields and credential references.

metadata: BTreeMap<String, Value>

Adapter-specific caller-owned service metadata.

Trait Implementations

impl Clone for ServiceReference

impl Clone for ServiceReference

clone

fn clone(&self) -> ServiceReference

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for ServiceReference

impl Debug for ServiceReference

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'de> Deserialize<'de> for ServiceReference

impl<'de> Deserialize<'de> for ServiceReference

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl JsonSchema for ServiceReference

impl JsonSchema for ServiceReference

schema_name

fn schema_name() -> Cow<'static, str>

schema_id

fn schema_id() -> Cow<'static, str>

json_schema

fn json_schema(generator: &mut SchemaGenerator) -> Schema

inline_schema

fn inline_schema() -> bool

impl PartialEq for ServiceReference

impl PartialEq for ServiceReference

eq

fn eq(&self, other: &ServiceReference) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Serialize for ServiceReference

impl Serialize for ServiceReference

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

impl StructuralPartialEq for ServiceReference

impl StructuralPartialEq for ServiceReference