Skip to main content

ServiceEndpoint

Type Alias ServiceEndpoint 

Source
pub type ServiceEndpoint = RemoteServiceEndpoint;
Expand description

Wire / API alias for a remote service endpoint (WEFT-115).

Historical audit name was ServiceEndpoint; production code uses RemoteServiceEndpoint. Both names refer to the same type.

Aliased Type§

pub struct ServiceEndpoint {
    pub name: String,
    pub node_id: String,
    pub pid: u64,
    pub methods: Vec<String>,
    pub version: String,
    pub contract_hash: Option<String>,
    pub metadata: HashMap<String, String>,
}

Fields§

§name: String

Service name.

§node_id: String

Node hosting the service.

§pid: u64

PID of the process hosting this service.

§methods: Vec<String>

Available methods.

§version: String

Service version.

§contract_hash: Option<String>

Service contract hash (if chain-anchored).

§metadata: HashMap<String, String>

Additional metadata.