pub struct ResourceLinkBuilder { /* private fields */ }Expand description
Builder for resource links
Implementations§
Source§impl ResourceLinkBuilder
impl ResourceLinkBuilder
Sourcepub fn with_title(self, title: impl Into<String>) -> Self
pub fn with_title(self, title: impl Into<String>) -> Self
Set title
Sourcepub fn with_audience(self, audience: impl Into<String>) -> Self
pub fn with_audience(self, audience: impl Into<String>) -> Self
Add audience annotation
Sourcepub fn with_priority(self, priority: f64) -> Self
pub fn with_priority(self, priority: f64) -> Self
Set priority annotation
Sourcepub fn with_last_modified(self, timestamp: impl Into<String>) -> Self
pub fn with_last_modified(self, timestamp: impl Into<String>) -> Self
Set last modified annotation
Sourcepub fn with_language(self, language: impl Into<String>) -> Self
pub fn with_language(self, language: impl Into<String>) -> Self
Set language annotation
Sourcepub fn build(self) -> ResourceLink
pub fn build(self) -> ResourceLink
Build resource link
Trait Implementations§
Source§impl Clone for ResourceLinkBuilder
impl Clone for ResourceLinkBuilder
Source§fn clone(&self) -> ResourceLinkBuilder
fn clone(&self) -> ResourceLinkBuilder
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 moreAuto Trait Implementations§
impl Freeze for ResourceLinkBuilder
impl RefUnwindSafe for ResourceLinkBuilder
impl Send for ResourceLinkBuilder
impl Sync for ResourceLinkBuilder
impl Unpin for ResourceLinkBuilder
impl UnwindSafe for ResourceLinkBuilder
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