pub struct FileChangedV1 {
pub path: String,
pub extensions: BTreeMap<String, Value>,
}Expand description
Stable payload for a successful file_changed event.
It intentionally contains no content, diff, permission, or redaction data. Those projections are owned by later policy/routing layers.
Fields§
§path: String§extensions: BTreeMap<String, Value>Additive payload fields from a future compatible producer.
Implementations§
Source§impl FileChangedV1
impl FileChangedV1
Sourcepub fn bounded_from(path: &str) -> Result<Self, ToolEventBuildError>
pub fn bounded_from(path: &str) -> Result<Self, ToolEventBuildError>
Validate a borrowed path before allocating its owned wire representation.
pub fn bounded(path: impl Into<String>) -> Result<Self, ToolEventBuildError>
Trait Implementations§
Source§impl Clone for FileChangedV1
impl Clone for FileChangedV1
Source§fn clone(&self) -> FileChangedV1
fn clone(&self) -> FileChangedV1
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 FileChangedV1
impl Debug for FileChangedV1
Source§impl<'de> Deserialize<'de> for FileChangedV1
impl<'de> Deserialize<'de> for FileChangedV1
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 FileChangedV1
Source§impl PartialEq for FileChangedV1
impl PartialEq for FileChangedV1
Source§impl Serialize for FileChangedV1
impl Serialize for FileChangedV1
impl StructuralPartialEq for FileChangedV1
Auto Trait Implementations§
impl Freeze for FileChangedV1
impl RefUnwindSafe for FileChangedV1
impl Send for FileChangedV1
impl Sync for FileChangedV1
impl Unpin for FileChangedV1
impl UnsafeUnpin for FileChangedV1
impl UnwindSafe for FileChangedV1
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