pub struct TigerResource {
pub uri: String,
pub geoid_type: GeoidType,
pub file_scope: Option<GeoidType>,
}Expand description
represents everything about a TIGER/Lines shapefile needed to download it and represent the result with bamcensus types.
Fields§
§uri: Stringcomplete URI to a file location in the TIGER/LINES HTTP website
geoid_type: GeoidTypethe geoid type of the file contents. each row should have a column denoting the Geoid value as a string that can be decoded by this application using the GeoidType::geoid_from_string method.
file_scope: Option<GeoidType>the file will contain a geographical data collection. the scope of that file depends on the TIGRIS year and target geoid hierarchy. for example, in 2010, county subdivisions are stored in files organized by state/state code, so their file scope would be State and the file itself would just be tagged by the state code. if file_scope is None, then the scope is “national”, as in, there is one file for all values for this year.
Implementations§
Source§impl TigerResource
impl TigerResource
Trait Implementations§
Source§impl Clone for TigerResource
impl Clone for TigerResource
Source§fn clone(&self) -> TigerResource
fn clone(&self) -> TigerResource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TigerResource
impl Debug for TigerResource
Source§impl<'de> Deserialize<'de> for TigerResource
impl<'de> Deserialize<'de> for TigerResource
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>,
impl Eq for TigerResource
Source§impl Hash for TigerResource
impl Hash for TigerResource
Source§impl PartialEq for TigerResource
impl PartialEq for TigerResource
Source§fn eq(&self, other: &TigerResource) -> bool
fn eq(&self, other: &TigerResource) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for TigerResource
impl Serialize for TigerResource
impl StructuralPartialEq for TigerResource
Auto Trait Implementations§
impl Freeze for TigerResource
impl RefUnwindSafe for TigerResource
impl Send for TigerResource
impl Sync for TigerResource
impl Unpin for TigerResource
impl UnsafeUnpin for TigerResource
impl UnwindSafe for TigerResource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more