pub struct StrmPrivacyClient { /* private fields */ }Implementations§
Source§impl StrmPrivacyClient
impl StrmPrivacyClient
Sourcepub async fn new(
client_id: String,
client_secret: String,
auth_url: &'static str,
api_url: &'static str,
) -> Result<Self, Error>
pub async fn new( client_id: String, client_secret: String, auth_url: &'static str, api_url: &'static str, ) -> Result<Self, Error>
Creates a new StrmPrivacyClient with custom endpoints
Sourcepub async fn default(
client_id: String,
client_secret: String,
) -> Result<Self, Error>
pub async fn default( client_id: String, client_secret: String, ) -> Result<Self, Error>
Creates a new StrmPrivacyClient with default endpoints
Sourcepub async fn send_event<T>(
&mut self,
event: T,
) -> Result<StrmPrivacyResponse, Error>where
T: StrmPrivacyValue,
pub async fn send_event<T>(
&mut self,
event: T,
) -> Result<StrmPrivacyResponse, Error>where
T: StrmPrivacyValue,
Send a StrmPrivacyValue to the backend en return the corresponding response
Auto Trait Implementations§
impl Freeze for StrmPrivacyClient
impl !RefUnwindSafe for StrmPrivacyClient
impl Send for StrmPrivacyClient
impl Sync for StrmPrivacyClient
impl Unpin for StrmPrivacyClient
impl !UnwindSafe for StrmPrivacyClient
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