pub struct DocumentationBuilder { /* private fields */ }Expand description
Builder for outcome documentation that requires at least one evidence-backed claim.
Implementations§
Source§impl DocumentationBuilder
impl DocumentationBuilder
Sourcepub fn documentation_id(self, value: OutcomeDocumentationId) -> Self
pub fn documentation_id(self, value: OutcomeDocumentationId) -> Self
Sets the documentation id value on this training builder.
Sourcepub fn enrollment_id(self, value: Id) -> Self
pub fn enrollment_id(self, value: Id) -> Self
Sets the enrollment id value on this training builder.
Sourcepub fn location_id(self, value: LocationId) -> Self
pub fn location_id(self, value: LocationId) -> Self
Sets the location id value on this training builder.
Sourcepub fn review(self, value: OutcomeReviewState) -> Self
pub fn review(self, value: OutcomeReviewState) -> Self
Sets the review value on this training builder.
Sourcepub fn build(self) -> Result<Documentation>
pub fn build(self) -> Result<Documentation>
Builds the report only when required evidence exists; missing IDs still indicate programmer misuse in tests/fixtures.
Trait Implementations§
Source§impl Default for DocumentationBuilder
impl Default for DocumentationBuilder
Source§fn default() -> DocumentationBuilder
fn default() -> DocumentationBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DocumentationBuilder
impl RefUnwindSafe for DocumentationBuilder
impl Send for DocumentationBuilder
impl Sync for DocumentationBuilder
impl Unpin for DocumentationBuilder
impl UnsafeUnpin for DocumentationBuilder
impl UnwindSafe for DocumentationBuilder
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