pub struct Place {
pub id: Id,
pub license: String,
pub revision: Revision,
pub created: Activity,
pub title: String,
pub description: String,
pub location: Location,
pub contact: Option<Contact>,
pub opening_hours: Option<OpeningHours>,
pub founded_on: Option<Date>,
pub links: Option<Links>,
pub tags: Vec<String>,
}
Fields§
§id: Id
§license: String
§revision: Revision
§created: Activity
§title: String
§description: String
§location: Location
§contact: Option<Contact>
§opening_hours: Option<OpeningHours>
§founded_on: Option<Date>
§links: Option<Links>
Implementations§
Source§impl Place
impl Place
pub fn strip_activity_details(self) -> Self
pub fn strip_contact_details(self) -> Self
pub fn contact_email(&self) -> Option<&EmailAddress>
pub fn is_owned<'a>( &self, moderated_tags: impl IntoIterator<Item = &'a str>, ) -> bool
Trait Implementations§
Source§impl From<(PlaceRoot, PlaceRevision)> for Place
impl From<(PlaceRoot, PlaceRevision)> for Place
Source§fn from(from: (PlaceRoot, PlaceRevision)) -> Self
fn from(from: (PlaceRoot, PlaceRevision)) -> Self
Converts to this type from the input type.
impl Eq for Place
impl StructuralPartialEq for Place
Auto Trait Implementations§
impl Freeze for Place
impl RefUnwindSafe for Place
impl Send for Place
impl Sync for Place
impl Unpin for Place
impl UnwindSafe for Place
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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