pub struct ReadOptions {
pub encoding: Option<String>,
pub include_m: bool,
pub prj: Option<String>,
}Expand description
Caller-tunable knobs for reading.
#[serde(default)] fills absent fields from Default, so the derived impl
and the deserialised defaults are the same thing by construction.
Fields§
§encoding: Option<String>Character set of the .dbf, normally taken from the companion .cpg file.
include_m: boolEmit shapefile M (measure) values as a trailing ordinate. GeoJSON has no notion of measures, so this is off by default.
prj: Option<String>Contents of the companion .prj, surfaced as wkt on the result.
Passed through by the TypeScript layer; nothing here parses it.
Trait Implementations§
Source§impl Debug for ReadOptions
impl Debug for ReadOptions
Source§impl Default for ReadOptions
impl Default for ReadOptions
Source§fn default() -> ReadOptions
fn default() -> ReadOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReadOptionswhere
ReadOptions: Default,
impl<'de> Deserialize<'de> for ReadOptionswhere
ReadOptions: Default,
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 ReadOptions
impl RefUnwindSafe for ReadOptions
impl Send for ReadOptions
impl Sync for ReadOptions
impl Unpin for ReadOptions
impl UnsafeUnpin for ReadOptions
impl UnwindSafe for ReadOptions
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