pub struct AnnotationsSummary {
pub resource: Uri,
pub annotation_count: i64,
pub entry_count: i64,
}Expand description
Lightweight per-session summary of the annotations channel, surfaced on {@link SessionSummary.annotations} so badge UI can render annotation / entry counts without subscribing to the channel itself.
Fields§
§resource: UriThe subscribable annotations channel URI for the owning session
(typically ahp-session:/<uuid>/annotations). Surfaced explicitly even
though it is derivable from the session URI so badge UI does not need
to know the derivation rule.
annotation_count: i64Total number of {@link Annotation} entries in the channel.
entry_count: i64Total number of {@link AnnotationEntry} entries across every annotation.
Trait Implementations§
Source§impl Clone for AnnotationsSummary
impl Clone for AnnotationsSummary
Source§fn clone(&self) -> AnnotationsSummary
fn clone(&self) -> AnnotationsSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnnotationsSummary
impl Debug for AnnotationsSummary
Source§impl<'de> Deserialize<'de> for AnnotationsSummary
impl<'de> Deserialize<'de> for AnnotationsSummary
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
Source§impl PartialEq for AnnotationsSummary
impl PartialEq for AnnotationsSummary
Source§fn eq(&self, other: &AnnotationsSummary) -> bool
fn eq(&self, other: &AnnotationsSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AnnotationsSummary
impl Serialize for AnnotationsSummary
impl StructuralPartialEq for AnnotationsSummary
Auto Trait Implementations§
impl Freeze for AnnotationsSummary
impl RefUnwindSafe for AnnotationsSummary
impl Send for AnnotationsSummary
impl Sync for AnnotationsSummary
impl Unpin for AnnotationsSummary
impl UnsafeUnpin for AnnotationsSummary
impl UnwindSafe for AnnotationsSummary
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