pub struct ListingProfile { /* private fields */ }Expand description
A business listing profile descriptor.
Implementations§
Source§impl ListingProfile
impl ListingProfile
Sourcepub const fn new(name: ListingName, provider: ListingProvider) -> Self
pub const fn new(name: ListingName, provider: ListingProvider) -> Self
Creates a listing profile.
Sourcepub const fn with_status(self, status: ListingStatus) -> Self
pub const fn with_status(self, status: ListingStatus) -> Self
Sets the listing status.
Sourcepub fn with_url(self, url: ListingUrl) -> Self
pub fn with_url(self, url: ListingUrl) -> Self
Sets the profile URL.
Sourcepub fn with_citation(self, citation: Citation) -> Self
pub fn with_citation(self, citation: Citation) -> Self
Sets the citation.
Sourcepub fn with_nap_record(self, record: NapRecord) -> Self
pub fn with_nap_record(self, record: NapRecord) -> Self
Sets the name/address/phone record.
Sourcepub const fn status(&self) -> ListingStatus
pub const fn status(&self) -> ListingStatus
Returns the status.
Sourcepub const fn name(&self) -> &ListingName
pub const fn name(&self) -> &ListingName
Returns the listing name.
Sourcepub const fn provider(&self) -> &ListingProvider
pub const fn provider(&self) -> &ListingProvider
Returns the provider.
Trait Implementations§
Source§impl Clone for ListingProfile
impl Clone for ListingProfile
Source§fn clone(&self) -> ListingProfile
fn clone(&self) -> ListingProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ListingProfile
impl Debug for ListingProfile
Source§impl PartialEq for ListingProfile
impl PartialEq for ListingProfile
Source§fn eq(&self, other: &ListingProfile) -> bool
fn eq(&self, other: &ListingProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ListingProfile
impl StructuralPartialEq for ListingProfile
Auto Trait Implementations§
impl Freeze for ListingProfile
impl RefUnwindSafe for ListingProfile
impl Send for ListingProfile
impl Sync for ListingProfile
impl Unpin for ListingProfile
impl UnsafeUnpin for ListingProfile
impl UnwindSafe for ListingProfile
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