pub struct PlaceParam {
pub type: Option<PlaceType>,
pub usage: Option<PlaceUsage>,
pub pt_modes: Option<Box<ModeFilter>>,
pub service_brand_filter: Option<Box<ServiceBrandFilter>>,
pub carrier_filter: Option<Box<CarrierFilter>>,
pub point_of_interest_filter: Option<Box<PointOfInterestFilter>>,
pub number_of_results: Option<Option<i32>>,
}Expand description
PlaceParam : More parameters for restricting the request. Provided by OJP.
Fields§
§type: Option<PlaceType>§usage: Option<PlaceUsage>§pt_modes: Option<Box<ModeFilter>>§service_brand_filter: Option<Box<ServiceBrandFilter>>§carrier_filter: Option<Box<CarrierFilter>>§point_of_interest_filter: Option<Box<PointOfInterestFilter>>§number_of_results: Option<Option<i32>>Maximum number of results to be returned. The service is allowed to return fewer objects if reasonable or otherwise appropriate.
Implementations§
Source§impl PlaceParam
impl PlaceParam
Sourcepub fn new() -> PlaceParam
pub fn new() -> PlaceParam
More parameters for restricting the request. Provided by OJP.
Trait Implementations§
Source§impl Clone for PlaceParam
impl Clone for PlaceParam
Source§fn clone(&self) -> PlaceParam
fn clone(&self) -> PlaceParam
Returns a duplicate of the value. Read more
1.0.0 · 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 PlaceParam
impl Debug for PlaceParam
Source§impl Default for PlaceParam
impl Default for PlaceParam
Source§fn default() -> PlaceParam
fn default() -> PlaceParam
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlaceParam
impl<'de> Deserialize<'de> for PlaceParam
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
Source§impl PartialEq for PlaceParam
impl PartialEq for PlaceParam
Source§impl Serialize for PlaceParam
impl Serialize for PlaceParam
impl StructuralPartialEq for PlaceParam
Auto Trait Implementations§
impl Freeze for PlaceParam
impl RefUnwindSafe for PlaceParam
impl Send for PlaceParam
impl Sync for PlaceParam
impl Unpin for PlaceParam
impl UnwindSafe for PlaceParam
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