pub enum ServerOptionKind {
Host,
Database,
User,
Password,
Socket,
Owner,
Port,
}Expand description
The fixed keyword of a ServerOption (sql_yacc.yy server_option). A surface tag (no
meta — its span rides the owning ServerOption). Only these seven keywords are
options; any other (FOO 'bar') is ER_PARSE_ERROR on mysql:8.4.10.
Variants§
Host
HOST '<host>' — the remote host name.
Database
DATABASE '<db>' — the remote default database.
User
USER '<user>' — the connection user.
Password
PASSWORD '<password>' — the connection password.
Socket
SOCKET '<socket>' — the remote unix socket path.
Owner
OWNER '<owner>' — the server owner.
Port
PORT <n> — the remote TCP port (an unsigned-integer value, not a string).
Trait Implementations§
Source§impl Clone for ServerOptionKind
impl Clone for ServerOptionKind
Source§fn clone(&self) -> ServerOptionKind
fn clone(&self) -> ServerOptionKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ServerOptionKind
Source§impl Debug for ServerOptionKind
impl Debug for ServerOptionKind
Source§impl<'de> Deserialize<'de> for ServerOptionKind
impl<'de> Deserialize<'de> for ServerOptionKind
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
impl Eq for ServerOptionKind
Source§impl Hash for ServerOptionKind
impl Hash for ServerOptionKind
Source§impl PartialEq for ServerOptionKind
impl PartialEq for ServerOptionKind
Source§impl Serialize for ServerOptionKind
impl Serialize for ServerOptionKind
impl StructuralPartialEq for ServerOptionKind
Auto Trait Implementations§
impl Freeze for ServerOptionKind
impl RefUnwindSafe for ServerOptionKind
impl Send for ServerOptionKind
impl Sync for ServerOptionKind
impl Unpin for ServerOptionKind
impl UnsafeUnpin for ServerOptionKind
impl UnwindSafe for ServerOptionKind
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