pub struct Session {
pub application_name: Option<ApplicationName>,
pub database: Database,
pub password: Option<Password>,
pub user: User,
}Expand description
Session parameters sent during PostgreSQL connection setup.
These are independent of how the connection is established (TCP, Unix socket, etc.) and represent what the client identifies as during the startup message.
Fields§
§application_name: Option<ApplicationName>§database: Database§password: Option<Password>§user: UserTrait Implementations§
impl Eq for Session
impl StructuralPartialEq for Session
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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