pub struct LintResponseBuilder { /* private fields */ }Expand description
Builder for LintResponse.
Implementations§
Source§impl LintResponseBuilder
impl LintResponseBuilder
pub fn valid(&mut self, value: bool) -> &mut Self
pub fn merged_yaml(&mut self, value: String) -> &mut Self
pub fn errors(&mut self, value: Vec<String>) -> &mut Self
Sourcepub fn build(&self) -> Result<LintResponse, LintResponseBuilderError>
pub fn build(&self) -> Result<LintResponse, LintResponseBuilderError>
Trait Implementations§
Source§impl Clone for LintResponseBuilder
impl Clone for LintResponseBuilder
Source§fn clone(&self) -> LintResponseBuilder
fn clone(&self) -> LintResponseBuilder
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 LintResponseBuilder
impl RefUnwindSafe for LintResponseBuilder
impl Send for LintResponseBuilder
impl Sync for LintResponseBuilder
impl Unpin for LintResponseBuilder
impl UnwindSafe for LintResponseBuilder
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