pub struct ContainersResource { /* private fields */ }Expand description
Containers 资源。
Implementations§
Source§impl ContainersResource
impl ContainersResource
Sourcepub fn create(&self) -> JsonRequestBuilder<Container>
pub fn create(&self) -> JsonRequestBuilder<Container>
创建 container。
Sourcepub fn retrieve(
&self,
container_id: impl Into<String>,
) -> JsonRequestBuilder<Container>
pub fn retrieve( &self, container_id: impl Into<String>, ) -> JsonRequestBuilder<Container>
获取 container。
Sourcepub fn list(&self) -> ListRequestBuilder<Container>
pub fn list(&self) -> ListRequestBuilder<Container>
列出 containers。
Sourcepub fn delete(
&self,
container_id: impl Into<String>,
) -> JsonRequestBuilder<DeleteResponse>
pub fn delete( &self, container_id: impl Into<String>, ) -> JsonRequestBuilder<DeleteResponse>
删除 container。
Sourcepub fn files(&self) -> ContainerFilesResource
pub fn files(&self) -> ContainerFilesResource
返回 files 子资源。
Trait Implementations§
Source§impl Clone for ContainersResource
impl Clone for ContainersResource
Source§fn clone(&self) -> ContainersResource
fn clone(&self) -> ContainersResource
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for ContainersResource
impl !RefUnwindSafe for ContainersResource
impl Send for ContainersResource
impl Sync for ContainersResource
impl Unpin for ContainersResource
impl UnsafeUnpin for ContainersResource
impl !UnwindSafe for ContainersResource
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