pub struct Constraint {Show 22 fields
pub count: i64,
pub currency: String,
pub end: String,
pub lat: f64,
pub lon: f64,
pub max_alt_m: f64,
pub max_amount: f64,
pub max_lat: f64,
pub max_lon: f64,
pub max_mps: f64,
pub min_alt_m: f64,
pub min_lat: f64,
pub min_lon: f64,
pub params: Option<BTreeMap<String, ParamsValue>>,
pub path_prefix: Option<String>,
pub points: Vec<[f64; 2]>,
pub radius_m: f64,
pub resource_id: String,
pub start: String,
pub tz: String,
pub kind: String,
pub window_s: i64,
}Fields§
§count: i64§currency: String§end: String§lat: f64§lon: f64§max_alt_m: f64§max_amount: f64§max_lat: f64§max_lon: f64§max_mps: f64§min_alt_m: f64§min_lat: f64§min_lon: f64§params: Option<BTreeMap<String, ParamsValue>>Extension-constraint parameters (SPEC §5.7.1). Permitted ONLY on non-canonical types under the restricted value model. Canonical types carrying params are rejected at encode/issue/decode.
path_prefix: Option<String>Optionally narrows a resource_path constraint to a path at or below
it under segment-boundary matching (SPEC §5.7.3). Absence (None) —
never the empty string — is the sole encoding of “entire resource”.
points: Vec<[f64; 2]>§radius_m: f64§resource_id: StringNames the resource a resource_path constraint binds to. Opaque
UTF-8; compared byte-for-byte, never dereferenced or normalized.
start: String§tz: String§kind: String§window_s: i64Trait Implementations§
Source§impl Clone for Constraint
impl Clone for Constraint
Source§impl Debug for Constraint
impl Debug for Constraint
Source§impl Default for Constraint
impl Default for Constraint
Source§impl<'de> Deserialize<'de> for Constraint
impl<'de> Deserialize<'de> for Constraint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Constraint
impl RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl UnsafeUnpin for Constraint
impl UnwindSafe for Constraint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more