pub struct ReportBuilder { /* private fields */ }Expand description
Builder for progress reports that rejects reports without trainer/source evidence.
Implementations§
Source§impl ReportBuilder
impl ReportBuilder
Sourcepub fn report_id(self, value: ProgressReportId) -> Self
pub fn report_id(self, value: ProgressReportId) -> Self
Sets the progress report identifier for the trainer update 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 session_ref(self, value: SessionRef) -> Self
pub fn session_ref(self, value: SessionRef) -> Self
Sets the session reference tied to the trainer evidence.
Sourcepub fn evidence(self, value: Vec<ProgressEvidence>) -> Self
pub fn evidence(self, value: Vec<ProgressEvidence>) -> Self
Adds trainer/source evidence that must be present before a progress report can be reviewed.
Sourcepub fn milestones(self, value: Vec<Progress>) -> Self
pub fn milestones(self, value: Vec<Progress>) -> Self
Sets the milestone progress entries included in the trainer report.
Sourcepub fn approval(self, value: ApprovalState) -> Self
pub fn approval(self, value: ApprovalState) -> Self
Sets the approval state before a progress report can become parent-facing.
Trait Implementations§
Source§impl Default for ReportBuilder
impl Default for ReportBuilder
Source§fn default() -> ReportBuilder
fn default() -> ReportBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReportBuilder
impl RefUnwindSafe for ReportBuilder
impl Send for ReportBuilder
impl Sync for ReportBuilder
impl Unpin for ReportBuilder
impl UnsafeUnpin for ReportBuilder
impl UnwindSafe for ReportBuilder
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