pub struct TrackPatchEventOptions {
pub event_type: PatchTelemetryEventType,
pub command: String,
pub metadata: Option<HashMap<String, Value>>,
pub error: Option<(String, String)>,
pub api_token: Option<String>,
pub org_slug: Option<String>,
}Expand description
Options for tracking a patch event.
Fields§
§event_type: PatchTelemetryEventTypeThe type of event being tracked.
command: StringThe CLI command being executed (e.g., “apply”, “remove”, “rollback”).
metadata: Option<HashMap<String, Value>>Optional metadata to include with the event.
error: Option<(String, String)>Optional error information if the operation failed. Tuple of (error_type, message).
api_token: Option<String>Optional API token for authenticated telemetry endpoint.
org_slug: Option<String>Optional organization slug for authenticated telemetry endpoint.
Auto Trait Implementations§
impl Freeze for TrackPatchEventOptions
impl RefUnwindSafe for TrackPatchEventOptions
impl Send for TrackPatchEventOptions
impl Sync for TrackPatchEventOptions
impl Unpin for TrackPatchEventOptions
impl UnsafeUnpin for TrackPatchEventOptions
impl UnwindSafe for TrackPatchEventOptions
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