pub struct StorefrontAccessToken { /* private fields */ }Implementations§
Source§impl StorefrontAccessToken
impl StorefrontAccessToken
pub fn new( shop_url: Arc<String>, version: Arc<String>, access_token: Arc<String>, callbacks: Arc<RequestCallbacks>, ) -> Self
Sourcepub fn with_ctx(ctx: ServiceContext) -> Self
pub fn with_ctx(ctx: ServiceContext) -> Self
Build the service from a shared ServiceContext. Cheaper than new at
construction sites that already hold a context (one Arc clone per service).
pub async fn list(&self) -> Result<ListStorefrontAccessTokensResp, APIError>
pub async fn create( &self, input: &StorefrontAccessTokenCreateInput, ) -> Result<StorefrontAccessTokenCreateResp, APIError>
pub async fn delete( &self, input: &StorefrontAccessTokenDeleteInput, ) -> Result<StorefrontAccessTokenDeleteResp, APIError>
Auto Trait Implementations§
impl Freeze for StorefrontAccessToken
impl !RefUnwindSafe for StorefrontAccessToken
impl Send for StorefrontAccessToken
impl Sync for StorefrontAccessToken
impl Unpin for StorefrontAccessToken
impl UnsafeUnpin for StorefrontAccessToken
impl !UnwindSafe for StorefrontAccessToken
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