Struct ListingProfile
pub struct ListingProfile { /* private fields */ }Expand description
A business listing profile descriptor.
Implementations§
§impl ListingProfile
impl ListingProfile
pub const fn new(name: ListingName, provider: ListingProvider) -> ListingProfile
pub const fn new(name: ListingName, provider: ListingProvider) -> ListingProfile
Creates a listing profile.
pub const fn with_status(self, status: ListingStatus) -> ListingProfile
pub const fn with_status(self, status: ListingStatus) -> ListingProfile
Sets the listing status.
pub fn with_url(self, url: ListingUrl) -> ListingProfile
pub fn with_url(self, url: ListingUrl) -> ListingProfile
Sets the profile URL.
pub fn with_citation(self, citation: Citation) -> ListingProfile
pub fn with_citation(self, citation: Citation) -> ListingProfile
Sets the citation.
pub fn with_nap_record(self, record: NapRecord) -> ListingProfile
pub fn with_nap_record(self, record: NapRecord) -> ListingProfile
Sets the name/address/phone record.
pub const fn status(&self) -> ListingStatus
pub const fn status(&self) -> ListingStatus
Returns the status.
pub const fn name(&self) -> &ListingName
pub const fn name(&self) -> &ListingName
Returns the listing name.
pub const fn provider(&self) -> &ListingProvider
pub const fn provider(&self) -> &ListingProvider
Returns the provider.
Trait Implementations§
§impl Clone for ListingProfile
impl Clone for ListingProfile
§fn clone(&self) -> ListingProfile
fn clone(&self) -> ListingProfile
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 more§impl Debug for ListingProfile
impl Debug for ListingProfile
§impl PartialEq for ListingProfile
impl PartialEq for ListingProfile
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