Struct async_nats::jetstream::stream::Info
source · pub struct Info {
pub config: Config,
pub created: OffsetDateTime,
pub state: State,
pub cluster: Option<ClusterInfo>,
pub mirror: Option<SourceInfo>,
pub sources: Vec<SourceInfo>,
}
Expand description
Shows config and current state for this stream.
Fields§
§config: Config
The configuration associated with this stream.
created: OffsetDateTime
The time that this stream was created.
state: State
Various metrics associated with this stream.
cluster: Option<ClusterInfo>
Information about leader and replicas.
mirror: Option<SourceInfo>
Information about mirror config if present.
sources: Vec<SourceInfo>
Information about sources configs if present.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Info
impl<'de> Deserialize<'de> for Info
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
impl Eq for Info
impl StructuralPartialEq for Info
Auto Trait Implementations§
impl Freeze for Info
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnwindSafe for Info
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)