pub struct Config {
pub host: String,
pub port: u16,
pub session_id: Uuid,
pub token: Option<String>,
pub user_id: Option<String>,
pub user_agent: Option<String>,
pub use_ssl: bool,
pub headers: Option<HashMap<String, String>>,
}
Expand description
Config handler to set custom SparkSessionBuilder options
Fields§
§host: String
§port: u16
§session_id: Uuid
§token: Option<String>
§user_id: Option<String>
§user_agent: Option<String>
§use_ssl: bool
§headers: Option<HashMap<String, String>>
Implementations§
Source§impl Config
impl Config
pub fn new() -> Self
pub fn host(self, val: &str) -> Self
pub fn port(self, val: u16) -> Self
pub fn token(self, val: &str) -> Self
pub fn session_id(self, val: Uuid) -> Self
pub fn user_id(self, val: &str) -> Self
pub fn user_agent(self, val: &str) -> Self
pub fn use_ssl(self, val: bool) -> Self
pub fn headers(self, val: HashMap<String, String>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request