use-attribution 0.0.1

Attribution and touchpoint label primitives for RustUse presence utilities
Documentation
  • Coverage
  • 89.74%
    35 out of 39 items documented1 out of 29 items with examples
  • Size
  • Source code size: 11.53 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 899.35 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-presence
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-attribution

Attribution and touchpoint label primitives for RustUse presence utilities.

Example

use use_attribution::{AttributionCredit, AttributionMedium, AttributionSource, Touchpoint};

let touchpoint = Touchpoint::new(
    AttributionSource::new("newsletter").unwrap(),
    AttributionMedium::new("email").unwrap(),
)
.with_credit(AttributionCredit::new(0.5).unwrap());

assert_eq!(touchpoint.credit().unwrap().value(), 0.5);

Scope

  • Touchpoints, attribution source and medium labels, windows, credit values, model-kind labels, and conversion labels.

Non-goals

  • Full analytics models, conversion tracking, probabilistic modeling, or data pipelines.

License

Licensed under either Apache-2.0 or MIT, at your option.