Struct reql::cmd::connect::Options [−][src]
#[non_exhaustive]pub struct Options { pub host: Cow<'static, str>, pub port: u16, pub db: Cow<'static, str>, pub user: Cow<'static, str>, pub password: Cow<'static, str>, }
Expand description
Options accepted by crate::r::connect
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct {{ .. }}
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.host: Cow<'static, str>
Expand description
Host of the RethinkDB instance. The default value is localhost
.
port: u16
Expand description
The driver port, by default 28015
.
db: Cow<'static, str>
Expand description
The database used if not explicitly specified in a query, by default test
.
user: Cow<'static, str>
Expand description
The user account to connect as (default admin
).
password: Cow<'static, str>
Expand description
The password for the user account to connect as (default ""
, empty).
Implementations
impl Options
[src]
impl Options
[src]pub fn new() -> Self
[src]
pub fn host<T>(self, host: T) -> Self where
T: StaticString,
[src]
T: StaticString,
pub fn port(self, port: u16) -> Self
[src]
pub fn db<T>(self, db: T) -> Self where
T: StaticString,
[src]
T: StaticString,
pub fn user<T>(self, user: T) -> Self where
T: StaticString,
[src]
T: StaticString,
pub fn password<T>(self, password: T) -> Self where
T: StaticString,
[src]
T: StaticString,
Trait Implementations
impl Ord for Options
[src]
impl Ord for Options
[src]impl PartialOrd<Options> for Options
[src]
impl PartialOrd<Options> for Options
[src]fn partial_cmp(&self, other: &Options) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Options) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for Options
[src]
impl StructuralEq for Options
[src]
impl StructuralPartialEq 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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,