pub struct WindowAnnotationTarget {
pub window_name: String,
pub key: String,
pub start_position: i64,
pub axis: TemporalAxis,
pub clock: Option<String>,
pub source: Option<String>,
pub partition: Option<String>,
}Expand description
Stable target identity for window annotations.
Fields§
§window_name: StringWindow family name.
key: StringLogical key.
start_position: i64Window start position.
axis: TemporalAxisTemporal axis governing start_position.
clock: Option<String>Timestamp clock identity, when applicable.
source: Option<String>Optional source/lane.
partition: Option<String>Optional partition.
Implementations§
Source§impl WindowAnnotationTarget
impl WindowAnnotationTarget
Sourcepub fn from_window(window: &WindowRecord) -> Self
pub fn from_window(window: &WindowRecord) -> Self
Creates a target from a recorded window.
Sourcepub fn from_closed(window: &ClosedWindow) -> Self
pub fn from_closed(window: &ClosedWindow) -> Self
Creates a target from a closed window.
Sourcepub fn from_open(window: &OpenWindow) -> Self
pub fn from_open(window: &OpenWindow) -> Self
Creates a target from an open window.
Trait Implementations§
Source§impl Clone for WindowAnnotationTarget
impl Clone for WindowAnnotationTarget
Source§impl Debug for WindowAnnotationTarget
impl Debug for WindowAnnotationTarget
Source§impl<'de> Deserialize<'de> for WindowAnnotationTarget
impl<'de> Deserialize<'de> for WindowAnnotationTarget
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 WindowAnnotationTarget
Source§impl PartialEq for WindowAnnotationTarget
impl PartialEq for WindowAnnotationTarget
Source§impl Serialize for WindowAnnotationTarget
impl Serialize for WindowAnnotationTarget
impl StructuralPartialEq for WindowAnnotationTarget
Auto Trait Implementations§
impl Freeze for WindowAnnotationTarget
impl RefUnwindSafe for WindowAnnotationTarget
impl Send for WindowAnnotationTarget
impl Sync for WindowAnnotationTarget
impl Unpin for WindowAnnotationTarget
impl UnsafeUnpin for WindowAnnotationTarget
impl UnwindSafe for WindowAnnotationTarget
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