Settings for the reference typ which is used for variables
Methods
fn new() -> LocationSettings
Creates a new LocationSettings object.
Example
let s = new;
assert!;
Clones the LocationSettings object and returns a new independet one.
Example
let s0 = new;
let s1 = s0.clone;
assert_eq!;
s1.locate_me = true;
s1.validation = false;
s1.lat_long = true;
assert_ne!;
Protocols
protocol get validation
let output = value.validation
Get the location validation mode as a string. Available options are: 'manual', 'auto', or 'none'.
Example
let s = new;
assert_eq!;
protocol set validation
value.validation = input
Set the location validation mode from a string or legacy boolean. Available strings are: 'manual', 'auto', or 'none'. true maps to 'auto' and false maps to 'manual'.
Example
let s = new;
s.validation = "none";
assert_eq!;
s.validation = false;
assert_eq!;