pub struct PackageEvent<'a> {Show 13 fields
pub client_id: &'a str,
pub event: &'a str,
pub ts: String,
pub app_version: &'a str,
pub os: &'a str,
pub arch: &'a str,
pub distro: Option<String>,
pub shell: Option<String>,
pub package: MinimalPackage<'a>,
pub package_type: &'a str,
pub scope: String,
pub reason: String,
pub install_type: Option<String>,
}Expand description
Represents an anonymous telemetry event sent to PostHog.
Fields§
§client_id: &'a strUnique anonymous identifier for the client.
event: &'a strThe name of the event (e.g. “install”, “uninstall”).
ts: StringRFC3339 formatted timestamp of the event.
app_version: &'a strVersion of the Zoi application.
os: &'a strOperating system name.
arch: &'a strCPU architecture.
distro: Option<String>Linux distribution name, if applicable.
shell: Option<String>The user’s current shell.
package: MinimalPackage<'a>Minimal package metadata.
package_type: &'a strType of the package (e.g. “Package”, “App”).
scope: StringInstallation scope (e.g. “global”, “user”).
reason: StringReason for the installation (e.g. “direct”, “dependency”).
install_type: Option<String>How the package was installed (e.g. “source”, “binary”).
Trait Implementations§
Source§impl<'a> Debug for PackageEvent<'a>
impl<'a> Debug for PackageEvent<'a>
Source§impl<'a> Serialize for PackageEvent<'a>
impl<'a> Serialize for PackageEvent<'a>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for PackageEvent<'a>
impl<'a> RefUnwindSafe for PackageEvent<'a>
impl<'a> Send for PackageEvent<'a>
impl<'a> Sync for PackageEvent<'a>
impl<'a> Unpin for PackageEvent<'a>
impl<'a> UnsafeUnpin for PackageEvent<'a>
impl<'a> UnwindSafe for PackageEvent<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more