pub struct Racks {
pub client: Client,
}
Fields§
§client: Client
Implementations§
Source§impl Racks
impl Racks
Sourcepub async fn get_page(
&self,
limit: u32,
page_token: &str,
sort_by: IdSortMode,
) -> Result<Vec<Rack>>
pub async fn get_page( &self, limit: u32, page_token: &str, sort_by: IdSortMode, ) -> Result<Vec<Rack>>
List racks.
This function performs a GET
to the /hardware/racks
endpoint.
Parameters:
limit: u32
– Maximum number of items returned by a single call.page_token: &str
– Token returned by previous call to retrieve the subsequent page.sort_by: crate::types::IdSortMode
– Supported set of sort modes for scanning by id only.
Currently, we only support scanning in ascending order.
Auto Trait Implementations§
impl Freeze for Racks
impl !RefUnwindSafe for Racks
impl Send for Racks
impl Sync for Racks
impl Unpin for Racks
impl !UnwindSafe for Racks
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