pub enum ProfileType {
BearerToken(BearerToken),
}Expand description
Profile type.
Variants§
BearerToken(BearerToken)
Bearer token profile type.
Implementations§
Source§impl ProfileType
impl ProfileType
Sourcepub fn new_bearer_token(
token: impl Into<String>,
expiration_time: Option<DateTime<Utc>>,
) -> Self
pub fn new_bearer_token( token: impl Into<String>, expiration_time: Option<DateTime<Utc>>, ) -> Self
Create a new bearer token profile type.
§Example
use datafusion_delta_sharing::profile::ProfileType;
let profile_type = ProfileType::new_bearer_token("token", None);
assert!(profile_type.is_bearer_token());Sourcepub fn is_bearer_token(&self) -> bool
pub fn is_bearer_token(&self) -> bool
Check if the profile type is a bearer token.
§Example
use datafusion_delta_sharing::profile::ProfileType;
let profile_type = ProfileType::new_bearer_token("token", None);
assert!(profile_type.is_bearer_token());Trait Implementations§
Source§impl Clone for ProfileType
impl Clone for ProfileType
Source§fn clone(&self) -> ProfileType
fn clone(&self) -> ProfileType
Returns a copy 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 ProfileType
impl Debug for ProfileType
Source§impl Hash for ProfileType
impl Hash for ProfileType
Source§impl PartialEq for ProfileType
impl PartialEq for ProfileType
impl Eq for ProfileType
impl StructuralPartialEq for ProfileType
Auto Trait Implementations§
impl Freeze for ProfileType
impl RefUnwindSafe for ProfileType
impl Send for ProfileType
impl Sync for ProfileType
impl Unpin for ProfileType
impl UnwindSafe for ProfileType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.