pub struct Topic {Show 17 fields
pub id: String,
pub name: String,
pub kind: String,
pub fifo: bool,
pub volatile: bool,
pub tags: Vec<(String, String)>,
pub prefixes: Vec<String>,
pub idle_timeout: Option<u64>,
pub max_message_bytes: Option<u64>,
pub ttl: Option<u64>,
pub max_deliveries: Option<u64>,
pub effective_max_message_bytes: Option<u64>,
pub effective_ttl: Option<u64>,
pub effective_max_deliveries: Option<u64>,
pub dead_letter: bool,
pub source: Option<String>,
pub created_at: Option<String>,
}Expand description
A topic of GET /topics (doc 16): its definition, as the server keeps it.
Fields§
§id: String§name: String§kind: Stringqueue or distributor.
fifo: bool§volatile: bool§prefixes: Vec<String>§idle_timeout: Option<u64>§max_message_bytes: Option<u64>What was set on the topic itself; None is the node’s default.
ttl: Option<u64>§max_deliveries: Option<u64>§effective_max_message_bytes: Option<u64>The values that apply (effective): the topic’s own, or the node’s default.
effective_ttl: Option<u64>§effective_max_deliveries: Option<u64>§dead_letter: bool§source: Option<String>The queue a dead-letter queue belongs to.
created_at: Option<String>Implementations§
Trait Implementations§
impl Eq for Topic
impl StructuralPartialEq for Topic
Auto Trait Implementations§
impl Freeze for Topic
impl RefUnwindSafe for Topic
impl Send for Topic
impl Sync for Topic
impl Unpin for Topic
impl UnsafeUnpin for Topic
impl UnwindSafe for Topic
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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