pub struct Sleds {
pub client: Client,
}
Fields§
§client: Client
Implementations§
Source§impl Sleds
impl Sleds
Sourcepub async fn get_page(
&self,
limit: u32,
page_token: &str,
sort_by: IdSortMode,
) -> Result<Vec<Sled>>
pub async fn get_page( &self, limit: u32, page_token: &str, sort_by: IdSortMode, ) -> Result<Vec<Sled>>
List sleds.
This function performs a GET
to the /hardware/sleds
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 Sleds
impl !RefUnwindSafe for Sleds
impl Send for Sleds
impl Sync for Sleds
impl Unpin for Sleds
impl !UnwindSafe for Sleds
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