pub struct PublicImageClient { /* private fields */ }Expand description
Calls PublicImageService.
The catalog of public images: the platform’s images, in each zone, that any project’s instances can be launched from. Not scoped to an organisation or a project; no permission is needed.
Implementations§
Source§impl PublicImageClient
impl PublicImageClient
Sourcepub fn new(client: &Client) -> Self
pub fn new(client: &Client) -> Self
Returns a client of PublicImageService that sends its calls through client.
Sourcepub fn service(&self) -> &Service
pub fn service(&self) -> &Service
The endpoint the client sends its calls to, which also serves the operations its methods answer with.
Sourcepub async fn get_public_image(
&self,
request: GetPublicImageRequest,
) -> Result<PublicImage, Error>
pub async fn get_public_image( &self, request: GetPublicImageRequest, ) -> Result<PublicImage, Error>
Returns a public image.
Sourcepub async fn list_public_images(
&self,
request: ListPublicImagesRequest,
) -> Result<ListPublicImagesResponse, Error>
pub async fn list_public_images( &self, request: ListPublicImagesRequest, ) -> Result<ListPublicImagesResponse, Error>
Lists the public images in a zone, oldest first.
Sourcepub fn all_public_images(
&self,
request: ListPublicImagesRequest,
) -> Pages<PublicImage>
pub fn all_public_images( &self, request: ListPublicImagesRequest, ) -> Pages<PublicImage>
Returns everything list_public_images lists from request’s page on, fetching the next page as the stream reaches it. A page that fails ends the stream with its error.
Trait Implementations§
Source§impl Clone for PublicImageClient
impl Clone for PublicImageClient
Auto Trait Implementations§
impl !RefUnwindSafe for PublicImageClient
impl !UnwindSafe for PublicImageClient
impl Forget for PublicImageClient
impl Freeze for PublicImageClient
impl Send for PublicImageClient
impl Sync for PublicImageClient
impl Unpin for PublicImageClient
impl UnsafeUnpin for PublicImageClient
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