pub struct AppInstallation { /* private fields */ }Implementations§
Source§impl AppInstallation
impl AppInstallation
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 get_current( &self, ) -> Result<GetCurrentAppInstallationResp, APIError>
pub async fn set_metafields( &self, metafields: Vec<MetafieldInput>, ) -> Result<SetMetafieldsResp, APIError>
pub async fn get_metafield( &self, app_installation_id: &str, namespace: &str, key: &str, ) -> Result<GetMetafieldResp, APIError>
pub async fn list_metafields( &self, app_installation_id: &str, first: Option<i32>, ) -> Result<ListMetafieldsResp, APIError>
pub async fn delete_metafields( &self, metafields: &[MetafieldIdentifierInput], ) -> Result<DeleteMetafieldsResp, APIError>
Auto Trait Implementations§
impl Freeze for AppInstallation
impl !RefUnwindSafe for AppInstallation
impl Send for AppInstallation
impl Sync for AppInstallation
impl Unpin for AppInstallation
impl UnsafeUnpin for AppInstallation
impl !UnwindSafe for AppInstallation
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