pub struct ProgressArgsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> ProgressArgsBuilder<S>
impl<S: State> ProgressArgsBuilder<S>
Sourcepub fn build(self) -> ProgressArgswhere
S: IsComplete,
pub fn build(self) -> ProgressArgswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn bytes_cached(self, value: i64) -> ProgressArgsBuilder<SetBytesCached<S>>where
S::BytesCached: IsUnset,
pub fn bytes_cached(self, value: i64) -> ProgressArgsBuilder<SetBytesCached<S>>where
S::BytesCached: IsUnset,
Sourcepub fn maybe_bytes_cached(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetBytesCached<S>>where
S::BytesCached: IsUnset,
pub fn maybe_bytes_cached(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetBytesCached<S>>where
S::BytesCached: IsUnset,
Sourcepub fn bytes_estimated(
self,
value: i64,
) -> ProgressArgsBuilder<SetBytesEstimated<S>>where
S::BytesEstimated: IsUnset,
pub fn bytes_estimated(
self,
value: i64,
) -> ProgressArgsBuilder<SetBytesEstimated<S>>where
S::BytesEstimated: IsUnset,
Sourcepub fn maybe_bytes_estimated(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetBytesEstimated<S>>where
S::BytesEstimated: IsUnset,
pub fn maybe_bytes_estimated(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetBytesEstimated<S>>where
S::BytesEstimated: IsUnset,
Sourcepub fn bytes_hashed(self, value: i64) -> ProgressArgsBuilder<SetBytesHashed<S>>where
S::BytesHashed: IsUnset,
pub fn bytes_hashed(self, value: i64) -> ProgressArgsBuilder<SetBytesHashed<S>>where
S::BytesHashed: IsUnset,
Sourcepub fn maybe_bytes_hashed(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetBytesHashed<S>>where
S::BytesHashed: IsUnset,
pub fn maybe_bytes_hashed(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetBytesHashed<S>>where
S::BytesHashed: IsUnset,
Sourcepub fn bytes_read(self, value: i64) -> ProgressArgsBuilder<SetBytesRead<S>>where
S::BytesRead: IsUnset,
pub fn bytes_read(self, value: i64) -> ProgressArgsBuilder<SetBytesRead<S>>where
S::BytesRead: IsUnset,
Sourcepub fn maybe_bytes_read(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetBytesRead<S>>where
S::BytesRead: IsUnset,
pub fn maybe_bytes_read(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetBytesRead<S>>where
S::BytesRead: IsUnset,
Sourcepub fn bytes_uploaded(
self,
value: i64,
) -> ProgressArgsBuilder<SetBytesUploaded<S>>where
S::BytesUploaded: IsUnset,
pub fn bytes_uploaded(
self,
value: i64,
) -> ProgressArgsBuilder<SetBytesUploaded<S>>where
S::BytesUploaded: IsUnset,
Sourcepub fn maybe_bytes_uploaded(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetBytesUploaded<S>>where
S::BytesUploaded: IsUnset,
pub fn maybe_bytes_uploaded(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetBytesUploaded<S>>where
S::BytesUploaded: IsUnset,
Sourcepub fn current_path(
self,
value: String,
) -> ProgressArgsBuilder<SetCurrentPath<S>>where
S::CurrentPath: IsUnset,
pub fn current_path(
self,
value: String,
) -> ProgressArgsBuilder<SetCurrentPath<S>>where
S::CurrentPath: IsUnset,
Sourcepub fn maybe_current_path(
self,
value: Option<String>,
) -> ProgressArgsBuilder<SetCurrentPath<S>>where
S::CurrentPath: IsUnset,
pub fn maybe_current_path(
self,
value: Option<String>,
) -> ProgressArgsBuilder<SetCurrentPath<S>>where
S::CurrentPath: IsUnset,
Sourcepub fn errors(self, value: i64) -> ProgressArgsBuilder<SetErrors<S>>where
S::Errors: IsUnset,
pub fn errors(self, value: i64) -> ProgressArgsBuilder<SetErrors<S>>where
S::Errors: IsUnset,
Sourcepub fn maybe_errors(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetErrors<S>>where
S::Errors: IsUnset,
pub fn maybe_errors(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetErrors<S>>where
S::Errors: IsUnset,
Sourcepub fn extra(
self,
value: Map<String, Value>,
) -> ProgressArgsBuilder<SetExtra<S>>where
S::Extra: IsUnset,
pub fn extra(
self,
value: Map<String, Value>,
) -> ProgressArgsBuilder<SetExtra<S>>where
S::Extra: IsUnset,
Required.
Any further detail the backup engine emits. Canopy makes no commitment about its shape: it is stored and shown verbatim, never interpreted.
Sourcepub fn files_done(self, value: i64) -> ProgressArgsBuilder<SetFilesDone<S>>where
S::FilesDone: IsUnset,
pub fn files_done(self, value: i64) -> ProgressArgsBuilder<SetFilesDone<S>>where
S::FilesDone: IsUnset,
Sourcepub fn maybe_files_done(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetFilesDone<S>>where
S::FilesDone: IsUnset,
pub fn maybe_files_done(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetFilesDone<S>>where
S::FilesDone: IsUnset,
Sourcepub fn files_estimated(
self,
value: i64,
) -> ProgressArgsBuilder<SetFilesEstimated<S>>where
S::FilesEstimated: IsUnset,
pub fn files_estimated(
self,
value: i64,
) -> ProgressArgsBuilder<SetFilesEstimated<S>>where
S::FilesEstimated: IsUnset,
Sourcepub fn maybe_files_estimated(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetFilesEstimated<S>>where
S::FilesEstimated: IsUnset,
pub fn maybe_files_estimated(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetFilesEstimated<S>>where
S::FilesEstimated: IsUnset,
Sourcepub fn ignored_errors(
self,
value: i64,
) -> ProgressArgsBuilder<SetIgnoredErrors<S>>where
S::IgnoredErrors: IsUnset,
pub fn ignored_errors(
self,
value: i64,
) -> ProgressArgsBuilder<SetIgnoredErrors<S>>where
S::IgnoredErrors: IsUnset,
Sourcepub fn maybe_ignored_errors(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetIgnoredErrors<S>>where
S::IgnoredErrors: IsUnset,
pub fn maybe_ignored_errors(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetIgnoredErrors<S>>where
S::IgnoredErrors: IsUnset,
Sourcepub fn purpose(self, value: BackupPurpose) -> ProgressArgsBuilder<SetPurpose<S>>where
S::Purpose: IsUnset,
pub fn purpose(self, value: BackupPurpose) -> ProgressArgsBuilder<SetPurpose<S>>where
S::Purpose: IsUnset,
Sourcepub fn maybe_purpose(
self,
value: Option<BackupPurpose>,
) -> ProgressArgsBuilder<SetPurpose<S>>where
S::Purpose: IsUnset,
pub fn maybe_purpose(
self,
value: Option<BackupPurpose>,
) -> ProgressArgsBuilder<SetPurpose<S>>where
S::Purpose: IsUnset,
Sourcepub fn run_id(self, value: Uuid) -> ProgressArgsBuilder<SetRunId<S>>where
S::RunId: IsUnset,
pub fn run_id(self, value: Uuid) -> ProgressArgsBuilder<SetRunId<S>>where
S::RunId: IsUnset,
Required.
The run-uuid the client minted for this run — the same one it passes to
POST /backup-credentials and reports under at POST /backup-report.
Sourcepub fn s3_received_payload_bytes(
self,
value: i64,
) -> ProgressArgsBuilder<SetS3ReceivedPayloadBytes<S>>where
S::S3ReceivedPayloadBytes: IsUnset,
pub fn s3_received_payload_bytes(
self,
value: i64,
) -> ProgressArgsBuilder<SetS3ReceivedPayloadBytes<S>>where
S::S3ReceivedPayloadBytes: IsUnset,
Sourcepub fn maybe_s3_received_payload_bytes(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetS3ReceivedPayloadBytes<S>>where
S::S3ReceivedPayloadBytes: IsUnset,
pub fn maybe_s3_received_payload_bytes(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetS3ReceivedPayloadBytes<S>>where
S::S3ReceivedPayloadBytes: IsUnset,
Sourcepub fn s3_received_raw_bytes(
self,
value: i64,
) -> ProgressArgsBuilder<SetS3ReceivedRawBytes<S>>where
S::S3ReceivedRawBytes: IsUnset,
pub fn s3_received_raw_bytes(
self,
value: i64,
) -> ProgressArgsBuilder<SetS3ReceivedRawBytes<S>>where
S::S3ReceivedRawBytes: IsUnset,
Sourcepub fn maybe_s3_received_raw_bytes(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetS3ReceivedRawBytes<S>>where
S::S3ReceivedRawBytes: IsUnset,
pub fn maybe_s3_received_raw_bytes(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetS3ReceivedRawBytes<S>>where
S::S3ReceivedRawBytes: IsUnset,
Sourcepub fn s3_sent_payload_bytes(
self,
value: i64,
) -> ProgressArgsBuilder<SetS3SentPayloadBytes<S>>where
S::S3SentPayloadBytes: IsUnset,
pub fn s3_sent_payload_bytes(
self,
value: i64,
) -> ProgressArgsBuilder<SetS3SentPayloadBytes<S>>where
S::S3SentPayloadBytes: IsUnset,
Sourcepub fn maybe_s3_sent_payload_bytes(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetS3SentPayloadBytes<S>>where
S::S3SentPayloadBytes: IsUnset,
pub fn maybe_s3_sent_payload_bytes(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetS3SentPayloadBytes<S>>where
S::S3SentPayloadBytes: IsUnset,
Sourcepub fn s3_sent_raw_bytes(
self,
value: i64,
) -> ProgressArgsBuilder<SetS3SentRawBytes<S>>where
S::S3SentRawBytes: IsUnset,
pub fn s3_sent_raw_bytes(
self,
value: i64,
) -> ProgressArgsBuilder<SetS3SentRawBytes<S>>where
S::S3SentRawBytes: IsUnset,
Sourcepub fn maybe_s3_sent_raw_bytes(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetS3SentRawBytes<S>>where
S::S3SentRawBytes: IsUnset,
pub fn maybe_s3_sent_raw_bytes(
self,
value: Option<i64>,
) -> ProgressArgsBuilder<SetS3SentRawBytes<S>>where
S::S3SentRawBytes: IsUnset,
Sourcepub fn snapshot_taken_at(
self,
value: Timestamp,
) -> ProgressArgsBuilder<SetSnapshotTakenAt<S>>where
S::SnapshotTakenAt: IsUnset,
pub fn snapshot_taken_at(
self,
value: Timestamp,
) -> ProgressArgsBuilder<SetSnapshotTakenAt<S>>where
S::SnapshotTakenAt: IsUnset,
Optional (Some / Option setters). When this run froze the data it is backing up — the point in time the backup represents, as opposed to when its upload finishes. Send it as soon as it is known (before any transfer starts). Recorded once per run: the first value Canopy sees stands, whether it arrives here or on the report.
Sourcepub fn maybe_snapshot_taken_at(
self,
value: Option<Timestamp>,
) -> ProgressArgsBuilder<SetSnapshotTakenAt<S>>where
S::SnapshotTakenAt: IsUnset,
pub fn maybe_snapshot_taken_at(
self,
value: Option<Timestamp>,
) -> ProgressArgsBuilder<SetSnapshotTakenAt<S>>where
S::SnapshotTakenAt: IsUnset,
Optional (Some / Option setters). When this run froze the data it is backing up — the point in time the backup represents, as opposed to when its upload finishes. Send it as soon as it is known (before any transfer starts). Recorded once per run: the first value Canopy sees stands, whether it arrives here or on the report.
Sourcepub fn type_(self, value: String) -> ProgressArgsBuilder<SetType<S>>where
S::Type: IsUnset,
pub fn type_(self, value: String) -> ProgressArgsBuilder<SetType<S>>where
S::Type: IsUnset,
Required.
The backup type being run (e.g. tamanu-postgres).