#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub struct DescribeStreamsGroupTopologyDescriptionStatus {
pub(super) raw: i8,
}
impl DescribeStreamsGroupTopologyDescriptionStatus {
pub const fn new(raw: i8) -> Self {
Self { raw }
}
pub const fn raw(self) -> i8 {
self.raw
}
}
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct DescribeStreamsGroupTopologyDescriptionNode {
pub(super) name: String,
pub(super) node_type: i8,
pub(super) source_topics: Vec<String>,
pub(super) sink_topic: Option<String>,
pub(super) stores: Vec<String>,
pub(super) successors: Vec<String>,
}
impl DescribeStreamsGroupTopologyDescriptionNode {
pub const fn new(
name: String,
node_type: i8,
source_topics: Vec<String>,
sink_topic: Option<String>,
stores: Vec<String>,
successors: Vec<String>,
) -> Self {
Self {
name,
node_type,
source_topics,
sink_topic,
stores,
successors,
}
}
#[allow(clippy::type_complexity)]
pub fn into_parts(
self,
) -> (
String,
i8,
Vec<String>,
Option<String>,
Vec<String>,
Vec<String>,
) {
(
self.name,
self.node_type,
self.source_topics,
self.sink_topic,
self.stores,
self.successors,
)
}
}
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct DescribeStreamsGroupTopologyDescriptionSubtopology {
pub(super) subtopology_id: String,
pub(super) nodes: Vec<DescribeStreamsGroupTopologyDescriptionNode>,
}
impl DescribeStreamsGroupTopologyDescriptionSubtopology {
pub const fn new(
subtopology_id: String,
nodes: Vec<DescribeStreamsGroupTopologyDescriptionNode>,
) -> Self {
Self {
subtopology_id,
nodes,
}
}
pub fn into_parts(self) -> (String, Vec<DescribeStreamsGroupTopologyDescriptionNode>) {
(self.subtopology_id, self.nodes)
}
}
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct DescribeStreamsGroupTopologyDescriptionGlobalStore {
pub(super) source: DescribeStreamsGroupTopologyDescriptionNode,
pub(super) processor: DescribeStreamsGroupTopologyDescriptionNode,
}
impl DescribeStreamsGroupTopologyDescriptionGlobalStore {
pub const fn new(
source: DescribeStreamsGroupTopologyDescriptionNode,
processor: DescribeStreamsGroupTopologyDescriptionNode,
) -> Self {
Self { source, processor }
}
pub fn into_parts(
self,
) -> (
DescribeStreamsGroupTopologyDescriptionNode,
DescribeStreamsGroupTopologyDescriptionNode,
) {
(self.source, self.processor)
}
}
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct DescribeStreamsGroupTopologyDescription {
pub(super) subtopologies: Vec<DescribeStreamsGroupTopologyDescriptionSubtopology>,
pub(super) global_stores: Vec<DescribeStreamsGroupTopologyDescriptionGlobalStore>,
}
impl DescribeStreamsGroupTopologyDescription {
pub const fn new(
subtopologies: Vec<DescribeStreamsGroupTopologyDescriptionSubtopology>,
global_stores: Vec<DescribeStreamsGroupTopologyDescriptionGlobalStore>,
) -> Self {
Self {
subtopologies,
global_stores,
}
}
pub fn into_parts(
self,
) -> (
Vec<DescribeStreamsGroupTopologyDescriptionSubtopology>,
Vec<DescribeStreamsGroupTopologyDescriptionGlobalStore>,
) {
(self.subtopologies, self.global_stores)
}
}