pub struct V4Client<C>where
C: Client,{
pub access_token: Option<AccessToken>,
pub base_url: Option<Url>,
/* private fields */
}
Fields§
§access_token: Option<AccessToken>
§base_url: Option<Url>
Implementations§
Source§impl<C> V4Client<C>where
C: Client,
impl<C> V4Client<C>where
C: Client,
pub async fn linode_instances_linodes_list( &self, page: impl Into<Option<usize>>, page_size: impl Into<Option<usize>>, ) -> Result<ResponseBody, V4ClientRespondError<C>>
pub async fn linode_instances_linode_create<F>(
&self,
region: &str,
type: &str,
f: F,
) -> Result<ResponseBody, V4ClientRespondError<C>>where
F: FnMut(&mut RequestBody),
pub async fn linode_instances_linode_delete( &self, linode_id: LinodeId, ) -> Result<(), V4ClientRespondError<C>>
pub async fn linode_instances_linode_view( &self, linode_id: LinodeId, ) -> Result<ResponseBody, V4ClientRespondError<C>>
pub async fn linode_instances_linode_boot( &self, linode_id: LinodeId, config_id: ConfigId, ) -> Result<(), V4ClientRespondError<C>>
pub async fn linode_instances_linode_reboot( &self, linode_id: LinodeId, config_id: Option<ConfigId>, ) -> Result<(), V4ClientRespondError<C>>
pub async fn linode_instances_ip_addresses_info( &self, linode_id: LinodeId, ) -> Result<ResponseBody, V4ClientRespondError<C>>
pub async fn linode_instances_config_create<F>(
&self,
linode_id: LinodeId,
label: &str,
f: F,
) -> Result<ResponseBody, V4ClientRespondError<C>>where
F: FnMut(&mut RequestBody),
pub async fn linode_instances_disk_create_with_image<F>(
&self,
linode_id: LinodeId,
size: usize,
image: &str,
root_pass: &str,
f: F,
) -> Result<ResponseBody, V4ClientRespondError<C>>where
F: FnMut(&mut RequestBodyWithImage),
pub async fn linode_instances_disk_view( &self, linode_id: LinodeId, disk_id: DiskId, ) -> Result<ResponseBody, V4ClientRespondError<C>>
pub async fn linode_types_types_list( &self, ) -> Result<ResponseBody, V4ClientRespondError<C>>
Source§impl<C> V4Client<C>where
C: Client,
impl<C> V4Client<C>where
C: Client,
pub fn new( inner: C, access_token: Option<AccessToken>, base_url: Option<Url>, ) -> Self
pub async fn respond<ReqQuery, ReqBody, RespBody>( &self, method: Method, path: &str, query: Option<&ReqQuery>, body: Option<&ReqBody>, ) -> Result<(StatusCode, RespBody, HeaderMap), V4ClientRespondError<C>>
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for V4Client<C>where
C: Freeze,
impl<C> RefUnwindSafe for V4Client<C>where
C: RefUnwindSafe,
impl<C> Send for V4Client<C>where
C: Send,
impl<C> Sync for V4Client<C>where
C: Sync,
impl<C> Unpin for V4Client<C>where
C: Unpin,
impl<C> UnwindSafe for V4Client<C>where
C: UnwindSafe,
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