pub struct DropUserBuilder { /* private fields */ }
Expand description
dropuser
removes a PostgreSQL
role.
Implementations§
Source§impl DropUserBuilder
impl DropUserBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new DropUserBuilder
Sourcepub fn from(settings: &dyn Settings) -> Self
pub fn from(settings: &dyn Settings) -> Self
Create a new DropUserBuilder
from Settings
Sourcepub fn program_dir<P: Into<PathBuf>>(self, path: P) -> Self
pub fn program_dir<P: Into<PathBuf>>(self, path: P) -> Self
Location of the program binary
Sourcepub fn interactive(self) -> Self
pub fn interactive(self) -> Self
Prompt before deleting anything, and prompt for role name if not specified
Sourcepub fn username<S: AsRef<OsStr>>(self, username: S) -> Self
pub fn username<S: AsRef<OsStr>>(self, username: S) -> Self
User name to connect as (not the one to drop)
Sourcepub fn no_password(self) -> Self
pub fn no_password(self) -> Self
Never prompt for password
Sourcepub fn pg_password<S: AsRef<OsStr>>(self, pg_password: S) -> Self
pub fn pg_password<S: AsRef<OsStr>>(self, pg_password: S) -> Self
user password
Trait Implementations§
Source§impl Clone for DropUserBuilder
impl Clone for DropUserBuilder
Source§fn clone(&self) -> DropUserBuilder
fn clone(&self) -> DropUserBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl CommandBuilder for DropUserBuilder
impl CommandBuilder for DropUserBuilder
Source§fn get_program(&self) -> &'static OsStr
fn get_program(&self) -> &'static OsStr
Get the program name
Source§fn get_program_dir(&self) -> &Option<PathBuf>
fn get_program_dir(&self) -> &Option<PathBuf>
Location of the program binary
Source§fn env<S: AsRef<OsStr>>(self, key: S, value: S) -> Self
fn env<S: AsRef<OsStr>>(self, key: S, value: S) -> Self
Set an environment variable for the command
Source§fn get_program_file(&self) -> PathBuf
fn get_program_file(&self) -> PathBuf
Fully qualified path to the program binary
Source§impl Debug for DropUserBuilder
impl Debug for DropUserBuilder
Source§impl Default for DropUserBuilder
impl Default for DropUserBuilder
Source§fn default() -> DropUserBuilder
fn default() -> DropUserBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DropUserBuilder
impl RefUnwindSafe for DropUserBuilder
impl Send for DropUserBuilder
impl Sync for DropUserBuilder
impl Unpin for DropUserBuilder
impl UnwindSafe for DropUserBuilder
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