use-campaign 0.0.1

Campaign identity primitives for RustUse presence utilities
Documentation
  • Coverage
  • 87.5%
    35 out of 40 items documented1 out of 24 items with examples
  • Size
  • Source code size: 9.97 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 919.72 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-campaign

Campaign identity primitives for RustUse presence utilities.

Example

use use_campaign::{CampaignChannel, CampaignFlight, CampaignId, CampaignName, CampaignStatus};

let id = CampaignId::new("spring-2026").unwrap();
let name = CampaignName::new("Spring Launch").unwrap();
let flight = CampaignFlight::new("2026-03-01").unwrap().with_end_label("2026-03-31").unwrap();

assert_eq!(CampaignStatus::Active.as_str(), "active");
assert_eq!(CampaignChannel::Email.as_str(), "email");
assert_eq!(flight.start_label(), "2026-03-01");
assert_eq!(id.as_str(), "spring-2026");
assert_eq!(name.as_str(), "Spring Launch");

Scope

  • Campaign IDs, names, channels, media labels, flights, statuses, and generic labels.

Non-goals

  • Ads platform integrations, bidding, budgets, analytics, or automation.

License

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