pub struct ProjectedToolEventV1 {
pub schema_version: u16,
pub event_type: ToolEventTypeV1,
pub subscription_id: ToolEventSubscriptionId,
pub context: ProjectedToolEventContextV1,
pub data: ProjectedFileChangedV1,
pub observation_policy_generation: Option<u64>,
}Expand description
Irreversible host projection admitted to a plugin sink queue. This is
intentionally a distinct type from producer crate::ToolEventV1, making
raw-event queueing a type error.
Fields§
§schema_version: u16§event_type: ToolEventTypeV1§subscription_id: ToolEventSubscriptionId§context: ProjectedToolEventContextV1§data: ProjectedFileChangedV1§observation_policy_generation: Option<u64>Present on host-projected delivery. Optional during deserialization so the original full-observation v1 golden remains backward compatible.
Implementations§
Source§impl ProjectedToolEventV1
impl ProjectedToolEventV1
pub fn file_changed( context: ProjectedToolEventContextV1, data: ProjectedFileChangedV1, observation_policy_generation: u64, ) -> Self
Sourcepub fn validate_bounds(&self) -> Result<(), ToolEventBuildError>
pub fn validate_bounds(&self) -> Result<(), ToolEventBuildError>
Revalidate a received projection against the public v1 contract.
Trait Implementations§
Source§impl Clone for ProjectedToolEventV1
impl Clone for ProjectedToolEventV1
Source§fn clone(&self) -> ProjectedToolEventV1
fn clone(&self) -> ProjectedToolEventV1
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 ProjectedToolEventV1
impl Debug for ProjectedToolEventV1
Source§impl<'de> Deserialize<'de> for ProjectedToolEventV1
impl<'de> Deserialize<'de> for ProjectedToolEventV1
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 ProjectedToolEventV1
Source§impl PartialEq for ProjectedToolEventV1
impl PartialEq for ProjectedToolEventV1
Source§impl Serialize for ProjectedToolEventV1
impl Serialize for ProjectedToolEventV1
impl StructuralPartialEq for ProjectedToolEventV1
Auto Trait Implementations§
impl Freeze for ProjectedToolEventV1
impl RefUnwindSafe for ProjectedToolEventV1
impl Send for ProjectedToolEventV1
impl Sync for ProjectedToolEventV1
impl Unpin for ProjectedToolEventV1
impl UnsafeUnpin for ProjectedToolEventV1
impl UnwindSafe for ProjectedToolEventV1
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