pub struct DescriptionBuilder { /* private fields */ }Expand description
Canonical single-record DESCRIPTION builder.
Implementations§
Source§impl DescriptionBuilder
impl DescriptionBuilder
Sourcepub const fn new(style: FormatStyle) -> Self
pub const fn new(style: FormatStyle) -> Self
Creates a builder using style.
Sourcepub fn field(self, name: FieldName, value: LogicalValue) -> Self
pub fn field(self, name: FieldName, value: LogicalValue) -> Self
Appends a validated field. Duplicate declarations are retained.
Sourcepub fn package(self, value: LogicalValue) -> Self
pub fn package(self, value: LogicalValue) -> Self
Appends Package.
Sourcepub fn version(self, value: LogicalValue) -> Self
pub fn version(self, value: LogicalValue) -> Self
Appends Version.
Sourcepub fn title(self, value: LogicalValue) -> Self
pub fn title(self, value: LogicalValue) -> Self
Appends Title.
Sourcepub fn description(self, value: LogicalValue) -> Self
pub fn description(self, value: LogicalValue) -> Self
Appends Description.
Sourcepub fn license(self, value: LogicalValue) -> Self
pub fn license(self, value: LogicalValue) -> Self
Appends License.
Appends Authors@R.
Appends Author.
Sourcepub fn maintainer(self, value: LogicalValue) -> Self
pub fn maintainer(self, value: LogicalValue) -> Self
Appends Maintainer.
Sourcepub fn depends(self, value: LogicalValue) -> Self
pub fn depends(self, value: LogicalValue) -> Self
Appends Depends.
Sourcepub fn imports(self, value: LogicalValue) -> Self
pub fn imports(self, value: LogicalValue) -> Self
Appends Imports.
Sourcepub fn suggests(self, value: LogicalValue) -> Self
pub fn suggests(self, value: LogicalValue) -> Self
Appends Suggests.
Sourcepub fn url(self, value: LogicalValue) -> Self
pub fn url(self, value: LogicalValue) -> Self
Appends URL.
Sourcepub fn remotes(self, value: LogicalValue) -> Self
pub fn remotes(self, value: LogicalValue) -> Self
Appends Remotes.
Sourcepub fn build(self) -> Description
pub fn build(self) -> Description
Builds a lossless parse with no structural syntax diagnostics.
Trait Implementations§
Source§impl Clone for DescriptionBuilder
impl Clone for DescriptionBuilder
Source§impl Debug for DescriptionBuilder
impl Debug for DescriptionBuilder
Auto Trait Implementations§
impl Forget for DescriptionBuilder
impl Freeze for DescriptionBuilder
impl Move for DescriptionBuilder
impl RefUnwindSafe for DescriptionBuilder
impl Send for DescriptionBuilder
impl Sync for DescriptionBuilder
impl Unpin for DescriptionBuilder
impl UnsafeUnpin for DescriptionBuilder
impl UnwindSafe for DescriptionBuilder
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