pub struct AddNodesToGroupResponse {
pub added: Vec<String>,
pub final_members: Vec<String>,
pub removed: Vec<String>,
}Expand description
Response body for POST /v2/groups/{name}/members.
The removed field name is retained for wire stability; its value
is the final, sorted membership of the group after the update —
not a list of removed nodes.
added and final_members are both sorted alphabetically by xname.
§Wire shape
{
"added": ["x3000c0s1b0n2", "x3000c0s1b0n3"],
"final_members": ["x3000c0s1b0n0", "x3000c0s1b0n1", "x3000c0s1b0n2", "x3000c0s1b0n3"],
"removed": ["x3000c0s1b0n0", "x3000c0s1b0n1", "x3000c0s1b0n2", "x3000c0s1b0n3"]
}Fields§
§added: Vec<String>Xnames that were added to the group as part of this request, sorted alphabetically.
final_members: Vec<String>Final, sorted membership of the group after the update.
removed: Vec<String>Deprecated alias for Self::final_members. Carries the same
value so existing clients reading removed keep working for one
release; new clients should read final_members. Scheduled for
removal in the next major bump — at which point the
#[serde(alias = "removed")] on final_members keeps inbound
compatibility for anyone POSTing back the old name.
Trait Implementations§
Source§impl Debug for AddNodesToGroupResponse
impl Debug for AddNodesToGroupResponse
Source§impl<'de> Deserialize<'de> for AddNodesToGroupResponse
impl<'de> Deserialize<'de> for AddNodesToGroupResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AddNodesToGroupResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AddNodesToGroupResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for AddNodesToGroupResponse
impl Serialize for AddNodesToGroupResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for AddNodesToGroupResponse
impl RefUnwindSafe for AddNodesToGroupResponse
impl Send for AddNodesToGroupResponse
impl Sync for AddNodesToGroupResponse
impl Unpin for AddNodesToGroupResponse
impl UnsafeUnpin for AddNodesToGroupResponse
impl UnwindSafe for AddNodesToGroupResponse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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