Skip to main content

Crate fiftyone_ip_intelligence_shared

Crate fiftyone_ip_intelligence_shared 

Source
Expand description

51Degrees

§51Degrees IP-intelligence shared model

The IP-intelligence element data that the on-premise and cloud engines both build on, following the ip-intelligence specification. Keeping these here, rather than in either engine crate, is what makes the two engines interface-compatible: both populate the same IpIntelligenceDataBase under the same IP_DATA_KEY, so a consuming application can swap an on-premise engine for a cloud one (or the reverse) without touching its result-reading code. This mirrors the device-detection shared model in fiftyone-device-detection-shared.

§What the crate provides

The IpIntelligenceData trait and its accessor set are generated from the common metadata by the 51Degrees PropertyGenerator tool into an internal ip_intelligence_data module; the hand-written data module supplies the backing store the accessors delegate to. Both are re-exported here, so the crate root is the single import surface.

Structs§

IpIntelligenceDataBase
The concrete IP-intelligence element data both engines produce.

Enums§

ValueStore
A single plain value for one property, or a no-value with the reason.
WeightedStore
A weighted value store for a single weighted property.

Constants§

GENERATED_PROPERTY_TYPES
Every generated property paired with its core value type, in name order. The data base uses this to publish per-property metadata.
IP_DATA_KEY
The typed handle used to store and retrieve IpIntelligenceDataBase in a fiftyone_pipeline_core::FlowData.
IP_DATA_KEY_NAME
The string element-data key under which IP-intelligence data is stored in a flow data.
WEIGHTED_PROPERTY_VALUE_TYPE
The value type a weighted property is reported as in metadata.
WEIGHTED_RECORD_VALUE_KEY
The key under which each flattened weighted record stores its candidate value in the dynamic property bag mirror.
WEIGHTED_RECORD_WEIGHT_KEY
The key under which each flattened weighted record stores its 0.0..=1.0 weighting multiplier in the dynamic property bag mirror.

Traits§

IpIntelligenceData
Strongly-typed read accessors for IP Intelligence properties.

Functions§

declared_property_value_type
The declared core value type for a property, looked up in the generated table case-insensitively.
default_aspect_property_metadata
Build the aspect AspectPropertyMetaData for every generated property, wrapping default_property_metadata with empty descriptions and tiers.
default_property_metadata
Build the core PropertyMetaData for every generated property, owned by the IP_DATA_KEY_NAME element.
generated_property_names
Every property name the generated model surfaces, in name order.