Skip to main content

Crate use_listing

Crate use_listing 

Source
Expand description

§use-listing

Business listing and citation primitives for RustUse presence utilities.

§Example

use use_listing::{ListingName, ListingProfile, ListingProvider, ListingStatus, NapRecord};

let profile = ListingProfile::new(
    ListingName::new("Example Cafe").unwrap(),
    ListingProvider::new("Directory").unwrap(),
)
.with_status(ListingStatus::Claimed)
.with_nap_record(NapRecord::new("Example Cafe", "1 Main St", "+1-555-0100").unwrap());

assert_eq!(profile.status(), ListingStatus::Claimed);

§Scope

  • Listing names, URLs, providers, citations, name/address/phone records, consistency scoring, statuses, and profiles.

§Non-goals

  • API-specific directory integrations, review management, or data synchronization.

§License

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

Structs§

Citation
A citation mention for a listing.
ListingName
A business or directory listing name.
ListingProfile
A business listing profile descriptor.
ListingProvider
A directory, listing, or citation provider label.
ListingUrl
A listing profile URL.
NapConsistency
Consistency result for name/address/phone fields.
NapRecord
A name/address/phone record used for consistency checks.

Enums§

ListingStatus
Status label for a listing profile.
ListingValueError
Error returned by listing primitive constructors.