Struct frankenstein::objects::Venue
source · [−]pub struct Venue {
pub location: Location,
pub title: String,
pub address: String,
pub foursquare_id: Option<String>,
pub foursquare_type: Option<String>,
pub google_place_id: Option<String>,
pub google_place_type: Option<String>,
}
Fields
location: Location
title: String
address: String
foursquare_id: Option<String>
foursquare_type: Option<String>
google_place_id: Option<String>
google_place_type: Option<String>
Implementations
sourceimpl Venue
impl Venue
sourcepub fn builder() -> VenueBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> VenueBuilder<((), (), (), (), (), (), ())>
Create a builder for building Venue
.
On the builder, call .location(...)
, .title(...)
, .address(...)
, .foursquare_id(...)
(optional), .foursquare_type(...)
(optional), .google_place_id(...)
(optional), .google_place_type(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of Venue
.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Venue
impl<'de> Deserialize<'de> for Venue
sourcefn 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
impl StructuralPartialEq for Venue
Auto Trait Implementations
impl RefUnwindSafe for Venue
impl Send for Venue
impl Sync for Venue
impl Unpin for Venue
impl UnwindSafe for Venue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more