pub struct ResourceBuilder { /* private fields */ }
Expand description
Builder for Resource
.
Implementations§
Source§impl ResourceBuilder
impl ResourceBuilder
Sourcepub fn base64<VALUE: Into<Base64>>(&mut self, value: VALUE) -> &mut Self
pub fn base64<VALUE: Into<Base64>>(&mut self, value: VALUE) -> &mut Self
A resource encoded using the Base64 alphabet defined by RFC 2045.
Sourcepub fn citation<VALUE: Into<Citation>>(&mut self, value: VALUE) -> &mut Self
pub fn citation<VALUE: Into<Citation>>(&mut self, value: VALUE) -> &mut Self
An optional citation consisting of end note text using structured markup.
Sourcepub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
An optional short summary of the resource used to indicate the purpose of the resource.
pub fn document_ids<VALUE: Into<Vec<DocumentIdentifier>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn props<VALUE: Into<Vec<Property>>>(&mut self, value: VALUE) -> &mut Self
pub fn remarks<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn rlinks<VALUE: Into<Vec<ResourceLink>>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
An optional name given to the resource, which may be used by a tool for display and navigation.
Trait Implementations§
Source§impl Clone for ResourceBuilder
impl Clone for ResourceBuilder
Source§fn clone(&self) -> ResourceBuilder
fn clone(&self) -> ResourceBuilder
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 ResourceBuilder
impl RefUnwindSafe for ResourceBuilder
impl Send for ResourceBuilder
impl Sync for ResourceBuilder
impl Unpin for ResourceBuilder
impl UnwindSafe for ResourceBuilder
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