From a46262ac98c998bd43b3018a161910850fd20b18 Mon Sep 17 00:00:00 2001 From: Armer song Date: Thu, 2 Jan 2025 14:09:21 +0800 Subject: [PATCH] support meta field for service --- Cargo.toml | 2 +- src/types.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 2ca4e63..e8aed25 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rs-consul" -version = "0.8.2" +version = "0.8.3" authors = ["Roblox"] edition = "2021" description = "This crate provides access to a set of strongly typed apis to interact with consul (https://www.consul.io/)" diff --git a/src/types.rs b/src/types.rs index e6375fe..e4d37a8 100644 --- a/src/types.rs +++ b/src/types.rs @@ -456,6 +456,8 @@ pub struct Service { pub port: u16, /// Tags assigned to the service instance. pub tags: Vec, + /// Meta assigned to the service instance. + pub meta: HashMap, } pub(crate) fn serialize_duration_as_string(