pub struct ClusterBootstrapRecoveryRecoveryTarget {
pub backup_id: Option<String>,
pub exclusive: Option<bool>,
pub target_immediate: Option<bool>,
pub target_lsn: Option<String>,
pub target_name: Option<String>,
pub target_tli: Option<String>,
pub target_time: Option<String>,
pub target_xid: Option<String>,
}Expand description
By default, the recovery process applies all the available WAL files in the archive (full recovery). However, you can also end the recovery as soon as a consistent state is reached or recover to a point-in-time (PITR) by specifying a RecoveryTarget object, as expected by PostgreSQL (i.e., timestamp, transaction Id, LSN, …). More info: https://www.postgresql.org/docs/current/runtime-config-wal.html#RUNTIME-CONFIG-WAL-RECOVERY-TARGET
Fields§
§backup_id: Option<String>The ID of the backup from which to start the recovery process. If empty (default) the operator will automatically detect the backup based on targetTime or targetLSN if specified. Otherwise use the latest available backup in chronological order.
exclusive: Option<bool>Set the target to be exclusive. If omitted, defaults to false, so that in Postgres, recovery_target_inclusive will be true
target_immediate: Option<bool>End recovery as soon as a consistent state is reached
target_lsn: Option<String>The target LSN (Log Sequence Number)
target_name: Option<String>The target name (to be previously created with pg_create_restore_point)
target_tli: Option<String>The target timeline (“latest” or a positive integer)
target_time: Option<String>The target time as a timestamp in the RFC3339 standard
target_xid: Option<String>The target transaction ID
Trait Implementations§
Source§impl Clone for ClusterBootstrapRecoveryRecoveryTarget
impl Clone for ClusterBootstrapRecoveryRecoveryTarget
Source§fn clone(&self) -> ClusterBootstrapRecoveryRecoveryTarget
fn clone(&self) -> ClusterBootstrapRecoveryRecoveryTarget
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ClusterBootstrapRecoveryRecoveryTarget
impl Default for ClusterBootstrapRecoveryRecoveryTarget
Source§fn default() -> ClusterBootstrapRecoveryRecoveryTarget
fn default() -> ClusterBootstrapRecoveryRecoveryTarget
Source§impl<'de> Deserialize<'de> for ClusterBootstrapRecoveryRecoveryTarget
impl<'de> Deserialize<'de> for ClusterBootstrapRecoveryRecoveryTarget
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>,
Source§impl JsonSchema for ClusterBootstrapRecoveryRecoveryTarget
impl JsonSchema for ClusterBootstrapRecoveryRecoveryTarget
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ClusterBootstrapRecoveryRecoveryTarget
impl RefUnwindSafe for ClusterBootstrapRecoveryRecoveryTarget
impl Send for ClusterBootstrapRecoveryRecoveryTarget
impl Sync for ClusterBootstrapRecoveryRecoveryTarget
impl Unpin for ClusterBootstrapRecoveryRecoveryTarget
impl UnwindSafe for ClusterBootstrapRecoveryRecoveryTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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>
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