pub struct AccountCollection<B: Bmc> { /* private fields */ }Expand description
Account collection.
Provides functions to access collection members.
Implementations§
Source§impl<B: Bmc> AccountCollection<B>
impl<B: Bmc> AccountCollection<B>
Sourcepub fn odata_id(&self) -> &ODataId
pub fn odata_id(&self) -> &ODataId
OData identifier of the account collection in Redfish.
Typically /redfish/v1/AccountService/Accounts.
Sourcepub async fn create_account(
&self,
create: ManagerAccountCreate,
) -> Result<Option<Account<B>>, Error<B>>
pub async fn create_account( &self, create: ManagerAccountCreate, ) -> Result<Option<Account<B>>, Error<B>>
Sourcepub async fn all_accounts_data(&self) -> Result<Vec<Account<B>>, Error<B>>
pub async fn all_accounts_data(&self) -> Result<Vec<Account<B>>, Error<B>>
Retrieve account data.
This method does not update the collection itself. It only retrieves all account data (if not already retrieved).
§Errors
Returns an error if retrieving account data fails. This can occur if the account collection was not expanded.
Auto Trait Implementations§
impl<B> Freeze for AccountCollection<B>
impl<B> !RefUnwindSafe for AccountCollection<B>
impl<B> Send for AccountCollection<B>
impl<B> Sync for AccountCollection<B>
impl<B> Unpin for AccountCollection<B>
impl<B> UnsafeUnpin for AccountCollection<B>
impl<B> !UnwindSafe for AccountCollection<B>
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