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 outcome-documentation identifier for the trainer evidence packet.
Sourcepub fn enrollment_id(self, value: Id) -> Self
pub fn enrollment_id(self, value: Id) -> Self
Sets the enrollment identifier that anchors this training packet.
Sourcepub fn pet_id(self, value: PetId) -> Self
pub fn pet_id(self, value: PetId) -> Self
Sets the pet whose training outcome documentation is being prepared.
Sourcepub fn location_id(self, value: LocationId) -> Self
pub fn location_id(self, value: LocationId) -> Self
Sets the resort location tied to the training outcome evidence.
Sourcepub fn claims(self, value: Vec<Claim>) -> Self
pub fn claims(self, value: Vec<Claim>) -> Self
Sets the evidence-backed outcome claims for trainer or manager review.
Sourcepub fn review(self, value: OutcomeReviewState) -> Self
pub fn review(self, value: OutcomeReviewState) -> Self
Sets the review state controlling parent-facing use of outcome claims.
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