pub struct Constraint {Show 19 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 points: Vec<[f64; 2]>,
pub radius_m: f64,
pub start: String,
pub tz: String,
pub kind: String,
pub window_s: i64,
}Expand description
First-class bound on when/where/how much an agent may exercise its scopes.
Wire format is a tagged JSON object. type discriminates the kind;
remaining fields are kind-specific. Unknown type values MUST be
rejected by conformant verifiers (fail-closed).
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§points: Vec<[f64; 2]>§radius_m: f64§start: String§tz: String§kind: String§window_s: i64Trait Implementations§
Source§impl Clone for Constraint
impl Clone for Constraint
Source§fn clone(&self) -> Constraint
fn clone(&self) -> Constraint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Constraint
impl Debug for Constraint
Source§impl Default for Constraint
impl Default for Constraint
Source§fn default() -> Constraint
fn default() -> Constraint
Returns the “default value” for a type. Read more
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