pub struct RestoreSpec {
pub repository: Option<RepositoryRef>,
pub source: RestoreSource,
pub target: Option<RestoreTarget>,
pub options: Option<RestoreOptions>,
pub policy: Option<RestorePolicy>,
}Expand description
A restore operation. target is optional: absence = passive populator mode,
consumed by a PVC’s spec.dataSourceRef. ADR §3.6/§4.7.
Desired state of a Restore: where to read from, where to write to, and how
to behave when the snapshot is missing. ADR §3.6/§4.6.
Fields§
§repository: Option<RepositoryRef>Derived from source when omitted; REQUIRED only with source.identity. ADR §3.6/§4.6.
source: RestoreSourceExactly one source mode; webhook-enforced. ADR §3.6.
target: Option<RestoreTarget>Absence = passive populator mode. ADR §3.6/§4.7.
options: Option<RestoreOptions>kopia restore behavior (file deletion, permission/atomicity handling). ADR §4.6.
policy: Option<RestorePolicy>Missing-snapshot handling and wait timeout. ADR §4.6 (G7).
Trait Implementations§
Source§impl Clone for RestoreSpec
impl Clone for RestoreSpec
Source§fn clone(&self) -> RestoreSpec
fn clone(&self) -> RestoreSpec
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 moreSource§impl Debug for RestoreSpec
impl Debug for RestoreSpec
Source§impl<'de> Deserialize<'de> for RestoreSpec
impl<'de> Deserialize<'de> for RestoreSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for RestoreSpec
impl JsonSchema for RestoreSpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RestoreSpec
impl PartialEq for RestoreSpec
Source§impl Serialize for RestoreSpec
impl Serialize for RestoreSpec
impl StructuralPartialEq for RestoreSpec
Auto Trait Implementations§
impl Freeze for RestoreSpec
impl RefUnwindSafe for RestoreSpec
impl Send for RestoreSpec
impl Sync for RestoreSpec
impl Unpin for RestoreSpec
impl UnsafeUnpin for RestoreSpec
impl UnwindSafe for RestoreSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more