pub struct AttributionSnapshotMessage {
pub message_type: String,
pub message_id: String,
pub surface: String,
pub file_states: HashMap<String, FileAttributionState>,
pub prompt_count: u32,
pub prompt_count_at_last_commit: u32,
pub permission_prompt_count: u32,
pub permission_prompt_count_at_last_commit: u32,
pub escape_count: u32,
pub escape_count_at_last_commit: u32,
}Expand description
Attribution snapshot message for persistence.
Fields§
§message_type: String§message_id: String§surface: String§file_states: HashMap<String, FileAttributionState>§prompt_count: u32§prompt_count_at_last_commit: u32§permission_prompt_count: u32§permission_prompt_count_at_last_commit: u32§escape_count: u32§escape_count_at_last_commit: u32Trait Implementations§
Source§impl Clone for AttributionSnapshotMessage
impl Clone for AttributionSnapshotMessage
Source§fn clone(&self) -> AttributionSnapshotMessage
fn clone(&self) -> AttributionSnapshotMessage
Returns a duplicate of the value. Read more
1.0.0 · 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 AttributionSnapshotMessage
impl Debug for AttributionSnapshotMessage
Source§impl<'de> Deserialize<'de> for AttributionSnapshotMessage
impl<'de> Deserialize<'de> for AttributionSnapshotMessage
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
Auto Trait Implementations§
impl Freeze for AttributionSnapshotMessage
impl RefUnwindSafe for AttributionSnapshotMessage
impl Send for AttributionSnapshotMessage
impl Sync for AttributionSnapshotMessage
impl Unpin for AttributionSnapshotMessage
impl UnsafeUnpin for AttributionSnapshotMessage
impl UnwindSafe for AttributionSnapshotMessage
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