pub struct SessionConfig {
pub database: Option<String>,
pub fetch_size: usize,
pub default_access_mode: AccessMode,
pub bookmarks: Vec<Bookmark>,
pub impersonated_user: Option<String>,
}Expand description
세션 설정
Fields§
§database: Option<String>데이터베이스 이름
fetch_size: usizeFetch Size
default_access_mode: AccessMode기본 접근 모드
bookmarks: Vec<Bookmark>북마크
impersonated_user: Option<String>임퍼손트 사용자
Implementations§
Source§impl SessionConfig
impl SessionConfig
Sourcepub fn builder() -> SessionConfigBuilder
pub fn builder() -> SessionConfigBuilder
빌더 시작
Sourcepub fn with_database(self, database: impl Into<String>) -> Self
pub fn with_database(self, database: impl Into<String>) -> Self
데이터베이스 설정
Sourcepub fn with_fetch_size(self, size: usize) -> Self
pub fn with_fetch_size(self, size: usize) -> Self
Fetch Size 설정
Sourcepub fn with_access_mode(self, mode: AccessMode) -> Self
pub fn with_access_mode(self, mode: AccessMode) -> Self
접근 모드 설정
Sourcepub fn with_bookmarks(self, bookmarks: Vec<Bookmark>) -> Self
pub fn with_bookmarks(self, bookmarks: Vec<Bookmark>) -> Self
북마크 설정
Trait Implementations§
Source§impl Clone for SessionConfig
impl Clone for SessionConfig
Source§fn clone(&self) -> SessionConfig
fn clone(&self) -> SessionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionConfig
impl Debug for SessionConfig
Auto Trait Implementations§
impl Freeze for SessionConfig
impl RefUnwindSafe for SessionConfig
impl Send for SessionConfig
impl Sync for SessionConfig
impl Unpin for SessionConfig
impl UnwindSafe for SessionConfig
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