#[non_exhaustive]pub struct WriteAttribution {
pub plugin_id: Option<String>,
pub source: Option<String>,
pub correlation_id: Option<String>,
pub note: Option<String>,
}Expand description
Who the host believes performed a write.
plugin_id is stamped by the host from the mounted plugin’s validated
descriptor and is therefore trustworthy. Every other field is copied
verbatim from the writer and is advisory only — useful for correlating
related operations, never an authorization or authenticity signal.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.plugin_id: Option<String>Mounted plugin namespace, when the write came through a plugin.
source: Option<String>Caller-selected source label.
correlation_id: Option<String>Caller-supplied identifier linking related operations.
note: Option<String>Caller-supplied human-readable reason.
Implementations§
Source§impl WriteAttribution
impl WriteAttribution
Sourcepub fn external() -> WriteAttribution
pub fn external() -> WriteAttribution
Attribution for a change TurboVault observed but cannot attribute to a
write it performed — an external editor, a git pull, another process.
Sourcepub fn host(source: impl Into<String>) -> WriteAttribution
pub fn host(source: impl Into<String>) -> WriteAttribution
Attribution for a write performed by the host’s own MCP tools.
Trait Implementations§
Source§impl Clone for WriteAttribution
impl Clone for WriteAttribution
Source§fn clone(&self) -> WriteAttribution
fn clone(&self) -> WriteAttribution
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 WriteAttribution
impl Debug for WriteAttribution
Source§impl Default for WriteAttribution
impl Default for WriteAttribution
Source§fn default() -> WriteAttribution
fn default() -> WriteAttribution
Returns the “default value” for a type. Read more
impl Eq for WriteAttribution
Source§impl PartialEq for WriteAttribution
impl PartialEq for WriteAttribution
impl StructuralPartialEq for WriteAttribution
Auto Trait Implementations§
impl Freeze for WriteAttribution
impl RefUnwindSafe for WriteAttribution
impl Send for WriteAttribution
impl Sync for WriteAttribution
impl Unpin for WriteAttribution
impl UnsafeUnpin for WriteAttribution
impl UnwindSafe for WriteAttribution
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.