pub struct Citation { /* private fields */ }Expand description
A citation mention for a listing.
Implementations§
Source§impl Citation
impl Citation
Sourcepub const fn new(name: ListingName, provider: ListingProvider) -> Self
pub const fn new(name: ListingName, provider: ListingProvider) -> Self
Creates a citation from a name and provider.
Sourcepub fn with_url(self, url: ListingUrl) -> Self
pub fn with_url(self, url: ListingUrl) -> Self
Sets the citation URL.
Sourcepub const fn provider(&self) -> &ListingProvider
pub const fn provider(&self) -> &ListingProvider
Returns the provider.
Trait Implementations§
impl Eq for Citation
impl StructuralPartialEq for Citation
Auto Trait Implementations§
impl Freeze for Citation
impl RefUnwindSafe for Citation
impl Send for Citation
impl Sync for Citation
impl Unpin for Citation
impl UnsafeUnpin for Citation
impl UnwindSafe for Citation
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