pub struct ThemeService { /* private fields */ }Implementations§
Source§impl ThemeService
impl ThemeService
pub fn new( shop_url: Arc<String>, version: Arc<String>, access_token: Arc<String>, callbacks: Arc<RequestCallbacks>, ) -> Self
pub fn with_ctx(ctx: ServiceContext) -> Self
pub async fn list(&self) -> Result<ListThemesResp, APIError>
pub async fn get_live(&self) -> Result<Option<Theme>, APIError>
pub async fn create_preview( &self, input: &CreatePreviewThemeInput, ) -> Result<ThemeDuplicateResp, APIError>
Auto Trait Implementations§
impl !RefUnwindSafe for ThemeService
impl !UnwindSafe for ThemeService
impl Freeze for ThemeService
impl Send for ThemeService
impl Sync for ThemeService
impl Unpin for ThemeService
impl UnsafeUnpin for ThemeService
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