[][src]Struct the_process_foundry::applications::pg_basebackup::Options

pub struct Options {
    pgdata: Option<String>,
    max_rate: Option<Rate>,
    write_recovery_conf: bool,
    tablespace_mapping: Option<String>,
    waldir: Option<String>,
    wal_method: Option<WalMethod>,
    compression: Option<Compression>,
    checkpoint: Option<Checkpoint>,
    create_slot: bool,
    label: Option<String>,
    no_clean: bool,
    no_sync: bool,
    progress: bool,
    slot: Option<String>,
    verbose: bool,
    version: Option<bool>,
    no_slot: bool,
    no_verify_checksums: bool,
    username: Option<String>,
    no_password: bool,
    password: bool,
}

All the command line options that can be passed to the program

Fields

pgdata: Option<String>

-D, --pgdata=DIRECTORY receive base backup into directory

max_rate: Option<Rate>

-r, --max-rate=RATE maximum transfer rate to transfer data directory (in kB/s, or use suffix "k" or "M")

write_recovery_conf: bool

-R, --write-recovery-conf write recovery.conf for replication

tablespace_mapping: Option<String>

-T, --tablespace-mapping=OLDDIR=NEWDIR relocate table-space in OLD-DIR to NEW-DIR

waldir: Option<String>

--waldir=WALDIR location for the write-ahead log directory

wal_method: Option<WalMethod>

-X, --wal-method=none|fetch|stream include required WAL files with specified method

compression: Option<Compression>

How much and what type of compression should be done on the output -F, --format=p|t output format (plain (default), tar) -z, --gzip compress tar output -Z, --compress=0-9 compress tar output with given compression level

checkpoint: Option<Checkpoint>

-c, --checkpoint=fast|spread set fast or spread check-pointing

create_slot: bool

-C, --create-slot create replication slot

label: Option<String>

-l, --label=LABEL set backup label

no_clean: bool

-n, --no-clean do not clean up after errors

no_sync: bool

-N, --no-sync do not wait for changes to be written safely to disk

progress: bool

-P, --progress show progress information

slot: Option<String>

-S, --slot= replication slot to use

verbose: bool

-v, --verbose output verbose messages

version: Option<bool>

-V, --version output version information, then exit

no_slot: bool

--no-slot prevent creation of temporary replication slot

no_verify_checksums: bool

--no-verify-checksums do not verify checksums

username: Option<String>

Connection options: -d, --dbname= connection string -h, --host=HOSTNAME database server host or socket directory -p, --port=PORT database server port number -s, --status-interval=INTERVAL time between status packets sent to server (in seconds) -U, --username=NAME connect as specified database user

no_password: bool

-w, --no-password never prompt for password

password: bool

-W, --password force password prompt (should happen automatically)

Implementations

impl Options[src]

pub fn new(path: String) -> Options[src]

Trait Implementations

impl ActionTrait for Options[src]

type RESPONSE = ActionResult

impl Clone for Options[src]

impl Debug for Options[src]

impl Default for Options[src]

impl<'de> Deserialize<'de> for Options[src]

impl Serialize for Options[src]

Auto Trait Implementations

impl RefUnwindSafe for Options

impl Send for Options

impl Sync for Options

impl Unpin for Options

impl UnwindSafe for Options

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,