SqlDocBuilder

Struct SqlDocBuilder 

Source
pub struct SqlDocBuilder<'a> { /* private fields */ }
Expand description

Builder structure for the SqlDoc

Implementations§

Source§

impl SqlDocBuilder<'_>

Source

pub fn deny(self, deny_path: &str) -> Self

Method for adding an item to the deny list

§Parameters
  • The path that will be added to deny path Vec
Source

pub fn flatten_multiline(self) -> Self

Method for flattening the multiline comments without additional formatting

Source

pub fn flatten_multiline_with(self, suffix: &str) -> Self

Method for flattening the multiline comments with String containing additional leading line formatting to add, such as punctuation.

Source

pub fn preserve_multiline(self) -> Self

Method to set multiline comments to preserve multiple lines

Source

pub fn build(self) -> Result<SqlDoc, DocError>

Builds the SqlDoc

Comment flattening (if enabled) is applied as a post-processing step after docs are generated.

§Errors
  • Will return DocError bubbled up

Trait Implementations§

Source§

impl<'a> Debug for SqlDocBuilder<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> PartialEq for SqlDocBuilder<'a>

Source§

fn eq(&self, other: &SqlDocBuilder<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> Eq for SqlDocBuilder<'a>

Source§

impl<'a> StructuralPartialEq for SqlDocBuilder<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for SqlDocBuilder<'a>

§

impl<'a> RefUnwindSafe for SqlDocBuilder<'a>

§

impl<'a> Send for SqlDocBuilder<'a>

§

impl<'a> Sync for SqlDocBuilder<'a>

§

impl<'a> Unpin for SqlDocBuilder<'a>

§

impl<'a> UnwindSafe for SqlDocBuilder<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.