pub struct ServiceAdvertisement {
pub name: String,
pub methods: Vec<String>,
pub node_id: String,
pub global_pid: GlobalPid,
pub version: String,
pub contract_hash: Option<String>,
pub metadata: HashMap<String, String>,
pub last_updated: u64,
}Expand description
Service advertised to the cluster.
Fields§
§name: StringService name (must be unique within the cluster).
methods: Vec<String>Available methods.
node_id: StringNode hosting this service.
global_pid: GlobalPidProcess hosting this service.
version: StringService version.
contract_hash: Option<String>Contract hash (if chain-anchored).
metadata: HashMap<String, String>Additional metadata.
last_updated: u64When this advertisement was last updated.
Trait Implementations§
Source§impl Clone for ServiceAdvertisement
impl Clone for ServiceAdvertisement
Source§impl Debug for ServiceAdvertisement
impl Debug for ServiceAdvertisement
Source§impl<'de> Deserialize<'de> for ServiceAdvertisement
impl<'de> Deserialize<'de> for ServiceAdvertisement
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
Auto Trait Implementations§
impl Freeze for ServiceAdvertisement
impl RefUnwindSafe for ServiceAdvertisement
impl Send for ServiceAdvertisement
impl Sync for ServiceAdvertisement
impl Unpin for ServiceAdvertisement
impl UnsafeUnpin for ServiceAdvertisement
impl UnwindSafe for ServiceAdvertisement
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more