pub struct DocumentMetadataBuilder { /* private fields */ }
Expand description
Builder for DocumentMetadata
.
Implementations§
Source§impl DocumentMetadataBuilder
impl DocumentMetadataBuilder
pub fn actions<VALUE: Into<Vec<Action>>>(&mut self, value: VALUE) -> &mut Self
pub fn document_ids<VALUE: Into<Vec<DocumentIdentifier>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn last_modified<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn links<VALUE: Into<Vec<Link>>>(&mut self, value: VALUE) -> &mut Self
pub fn locations<VALUE: Into<Vec<Location>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn oscal_version<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn parties<VALUE: Into<Vec<Party>>>(&mut self, value: VALUE) -> &mut Self
pub fn props<VALUE: Into<Vec<Property>>>(&mut self, value: VALUE) -> &mut Self
pub fn published<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn remarks<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn responsible_parties<VALUE: Into<Vec<ResponsibleParty>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn revisions<VALUE: Into<Vec<RevisionHistoryEntry>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn roles<VALUE: Into<Vec<Role>>>(&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
A name given to the document, which may be used by a tool for display and navigation.
pub fn version<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<DocumentMetadata, DocumentMetadataBuilderError>
pub fn build(&self) -> Result<DocumentMetadata, DocumentMetadataBuilderError>
Trait Implementations§
Source§impl Clone for DocumentMetadataBuilder
impl Clone for DocumentMetadataBuilder
Source§fn clone(&self) -> DocumentMetadataBuilder
fn clone(&self) -> DocumentMetadataBuilder
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 DocumentMetadataBuilder
impl RefUnwindSafe for DocumentMetadataBuilder
impl Send for DocumentMetadataBuilder
impl Sync for DocumentMetadataBuilder
impl Unpin for DocumentMetadataBuilder
impl UnwindSafe for DocumentMetadataBuilder
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