Skip to navigation

Struct Service Handle

View as Markdown

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

pub struct ServiceHandle {
    pub service_id: String,
    pub service_binding: String,
    pub adapter_id: String,
    pub service_type: String,
    pub ownership: ServiceOwnership,
    pub connection: BTreeMap<String, Value>,
    pub metadata: BTreeMap<String, Value>,
}

Public identity and binding for one prepared or attached service.

Fields

service_id: String

Unique identifier for this process-local service lifecycle.

service_binding: String

NeMo Fabric-owned opaque binding for this service handle.

adapter_id: String

Adapter that created or attached to the service.

service_type: String

Stable service type returned by the adapter.

ownership: ServiceOwnership

Whether NeMo Fabric owns the underlying service.

connection: BTreeMap<String, Value>

Sanitized connection summary. This never contains credential values.

metadata: BTreeMap<String, Value>

Adapter-reported version and readiness metadata.

Trait Implementations

impl Clone for ServiceHandle

impl Clone for ServiceHandle

clone

fn clone(&self) -> ServiceHandle

clone_from

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

impl Debug for ServiceHandle

impl Debug for ServiceHandle

fmt

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

impl<'de> Deserialize<'de> for ServiceHandle

impl<'de> Deserialize<'de> for ServiceHandle

deserialize

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

impl JsonSchema for ServiceHandle

impl JsonSchema for ServiceHandle

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 ServiceHandle

impl PartialEq for ServiceHandle

eq

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

ne

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

impl Serialize for ServiceHandle

impl Serialize for ServiceHandle

serialize

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

impl StructuralPartialEq for ServiceHandle

impl StructuralPartialEq for ServiceHandle