pub struct SparkAppService { /* private fields */ }Expand description
妙搭应用资源服务。
Implementations§
Source§impl SparkAppService
impl SparkAppService
Sourcepub fn new(config: Arc<PlatformConfig>) -> Self
pub fn new(config: Arc<PlatformConfig>) -> Self
创建新的妙搭应用资源服务。
Sourcepub fn create(&self) -> CreateSparkAppRequest
pub fn create(&self) -> CreateSparkAppRequest
创建妙搭应用。
Sourcepub fn list(&self) -> ListSparkAppsRequest
pub fn list(&self) -> ListSparkAppsRequest
批量获取妙搭应用。
Sourcepub fn patch(&self, app_id: impl Into<String>) -> PatchSparkAppRequest
pub fn patch(&self, app_id: impl Into<String>) -> PatchSparkAppRequest
更新妙搭应用信息。
Sourcepub fn icon(&self) -> UploadSparkAppIconRequest
pub fn icon(&self) -> UploadSparkAppIconRequest
上传妙搭应用图标。
Sourcepub fn get_app_visibility(
&self,
app_id: impl Into<String>,
) -> GetSparkAppVisibilityRequest
pub fn get_app_visibility( &self, app_id: impl Into<String>, ) -> GetSparkAppVisibilityRequest
获取妙搭应用可用范围。
Sourcepub fn update_app_visibility(
&self,
app_id: impl Into<String>,
) -> UpdateSparkAppVisibilityRequest
pub fn update_app_visibility( &self, app_id: impl Into<String>, ) -> UpdateSparkAppVisibilityRequest
更新妙搭应用可用范围。
Sourcepub fn upload_html_code_and_release(
&self,
app_id: impl Into<String>,
) -> UploadHtmlCodeAndReleaseRequest
pub fn upload_html_code_and_release( &self, app_id: impl Into<String>, ) -> UploadHtmlCodeAndReleaseRequest
上传 HTML 代码并发布。
Trait Implementations§
Source§impl Clone for SparkAppService
impl Clone for SparkAppService
Source§fn clone(&self) -> SparkAppService
fn clone(&self) -> SparkAppService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SparkAppService
impl !UnwindSafe for SparkAppService
impl Freeze for SparkAppService
impl Send for SparkAppService
impl Sync for SparkAppService
impl Unpin for SparkAppService
impl UnsafeUnpin for SparkAppService
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