#[non_exhaustive]pub struct SessionEndpointBuilder { /* private fields */ }Expand description
A builder for SessionEndpoint.
Implementations§
Source§impl SessionEndpointBuilder
impl SessionEndpointBuilder
Sourcepub fn url(self, input: impl Into<String>) -> Self
pub fn url(self, input: impl Into<String>) -> Self
The Spark Connect endpoint URL for the session.
This field is required.Sourcepub fn set_url(self, input: Option<String>) -> Self
pub fn set_url(self, input: Option<String>) -> Self
The Spark Connect endpoint URL for the session.
Sourcepub fn auth_token(self, input: impl Into<String>) -> Self
pub fn auth_token(self, input: impl Into<String>) -> Self
The authentication token to include in requests to the Spark Connect endpoint.
This field is required.Sourcepub fn set_auth_token(self, input: Option<String>) -> Self
pub fn set_auth_token(self, input: Option<String>) -> Self
The authentication token to include in requests to the Spark Connect endpoint.
Sourcepub fn get_auth_token(&self) -> &Option<String>
pub fn get_auth_token(&self) -> &Option<String>
The authentication token to include in requests to the Spark Connect endpoint.
Sourcepub fn auth_token_expiration_time(self, input: DateTime) -> Self
pub fn auth_token_expiration_time(self, input: DateTime) -> Self
The time at which the authentication token expires.
This field is required.Sourcepub fn set_auth_token_expiration_time(self, input: Option<DateTime>) -> Self
pub fn set_auth_token_expiration_time(self, input: Option<DateTime>) -> Self
The time at which the authentication token expires.
Sourcepub fn get_auth_token_expiration_time(&self) -> &Option<DateTime>
pub fn get_auth_token_expiration_time(&self) -> &Option<DateTime>
The time at which the authentication token expires.
Sourcepub fn build(self) -> Result<SessionEndpoint, BuildError>
pub fn build(self) -> Result<SessionEndpoint, BuildError>
Consumes the builder and constructs a SessionEndpoint.
This method will fail if any of the following fields are not set:
Trait Implementations§
Source§impl Clone for SessionEndpointBuilder
impl Clone for SessionEndpointBuilder
Source§fn clone(&self) -> SessionEndpointBuilder
fn clone(&self) -> SessionEndpointBuilder
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 moreSource§impl Debug for SessionEndpointBuilder
impl Debug for SessionEndpointBuilder
Source§impl Default for SessionEndpointBuilder
impl Default for SessionEndpointBuilder
Source§fn default() -> SessionEndpointBuilder
fn default() -> SessionEndpointBuilder
Returns the “default value” for a type. Read more
Source§impl PartialEq for SessionEndpointBuilder
impl PartialEq for SessionEndpointBuilder
impl StructuralPartialEq for SessionEndpointBuilder
Auto Trait Implementations§
impl Freeze for SessionEndpointBuilder
impl RefUnwindSafe for SessionEndpointBuilder
impl Send for SessionEndpointBuilder
impl Sync for SessionEndpointBuilder
impl Unpin for SessionEndpointBuilder
impl UnsafeUnpin for SessionEndpointBuilder
impl UnwindSafe for SessionEndpointBuilder
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.