pub struct DataSourceAPI { /* private fields */ }
Implementations§
Source§impl DataSourceAPI
impl DataSourceAPI
Sourcepub async fn init(
connector: impl DataSource,
nest_auth_token: String,
ps_config: PAASConfig,
oauth_config: TokenServiceConfig,
) -> Self
pub async fn init( connector: impl DataSource, nest_auth_token: String, ps_config: PAASConfig, oauth_config: TokenServiceConfig, ) -> Self
Create a new instance of the DataSourceAPI.
Sourcepub fn configure_service(&self, cfg: &mut ServiceConfig)
pub fn configure_service(&self, cfg: &mut ServiceConfig)
Configure an actix-web service with API routes and authentication middleware.
Trait Implementations§
Source§impl Clone for DataSourceAPI
impl Clone for DataSourceAPI
Source§fn clone(&self) -> DataSourceAPI
fn clone(&self) -> DataSourceAPI
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DataSourceAPI
impl !RefUnwindSafe for DataSourceAPI
impl Send for DataSourceAPI
impl Sync for DataSourceAPI
impl Unpin for DataSourceAPI
impl !UnwindSafe for DataSourceAPI
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