Skip to main content

Crate use_local

Crate use_local 

Source
Expand description

§use-local

Local business presence primitives for RustUse.

§Example

use use_local::{BusinessPresenceKind, LocalCategory, LocalVisibilityHint, ServiceAreaBusiness};

let business = ServiceAreaBusiness::new("Example Plumbing", BusinessPresenceKind::ServiceArea)
    .unwrap()
    .with_category(LocalCategory::new("Plumber").unwrap())
    .with_visibility_hint(LocalVisibilityHint::OnSiteService);

assert!(business.is_service_area_business());

§Scope

  • Business location labels, opening-hours labels, local categories, service-area businesses, and visibility hints.
  • Primitive storefront versus service-area descriptors.

§Non-goals

  • Business profile APIs, review APIs, maps SDKs, or scheduling systems.

§License

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

Structs§

BusinessLocation
A business location label or address string.
LocalCategory
Local category label for external surfaces.
OpeningHoursLabel
Human-readable opening-hours label.
ServiceAreaBusiness
A local service-area business record.

Enums§

BusinessPresenceKind
Local business presence shape.
LocalValueError
Error returned by local presence constructors.
LocalVisibilityHint
Local visibility hint for external profiles.