pub struct JwtAuth {
pub auth_jwt_url: String,
pub collection_id: String,
pub private_api_key: String,
pub reader_url: Option<String>,
pub writer_url: Option<String>,
}Expand description
Authentication configuration for JWT authentication
Fields§
§auth_jwt_url: String§collection_id: String§private_api_key: String§reader_url: Option<String>§writer_url: Option<String>Implementations§
Source§impl JwtAuth
impl JwtAuth
Sourcepub fn new<S: Into<String>>(
auth_jwt_url: S,
collection_id: S,
private_api_key: S,
) -> Self
pub fn new<S: Into<String>>( auth_jwt_url: S, collection_id: S, private_api_key: S, ) -> Self
Create a new JWT authentication configuration
Sourcepub fn with_reader_url<S: Into<String>>(self, url: S) -> Self
pub fn with_reader_url<S: Into<String>>(self, url: S) -> Self
Set the reader URL
Sourcepub fn with_writer_url<S: Into<String>>(self, url: S) -> Self
pub fn with_writer_url<S: Into<String>>(self, url: S) -> Self
Set the writer URL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JwtAuth
impl RefUnwindSafe for JwtAuth
impl Send for JwtAuth
impl Sync for JwtAuth
impl Unpin for JwtAuth
impl UnsafeUnpin for JwtAuth
impl UnwindSafe for JwtAuth
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