pub struct Account<B: Bmc> { /* private fields */ }Expand description
Represents a Redfish ManagerAccount.
Implementations§
Source§impl<B: Bmc> Account<B>
impl<B: Bmc> Account<B>
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Account is enabled.
Sourcepub async fn update(
&self,
update: &ManagerAccountUpdate,
) -> Result<Option<Self>, Error<B>>
pub async fn update( &self, update: &ManagerAccountUpdate, ) -> Result<Option<Self>, Error<B>>
Update the account.
Returns the new (updated) account.
§Errors
Returns an error if the server responds with an error or if the response cannot be parsed.
Sourcepub async fn update_password(
&self,
password: String,
) -> Result<Option<Self>, Error<B>>
pub async fn update_password( &self, password: String, ) -> Result<Option<Self>, Error<B>>
Update the account’s password.
Returns the new (updated) account.
§Errors
Returns an error if the server responds with an error or if the response cannot be parsed.
Trait Implementations§
Source§impl<B: Bmc> Resource for Account<B>
impl<B: Bmc> Resource for Account<B>
Source§fn resource_ref(&self) -> &ResourceSchema
fn resource_ref(&self) -> &ResourceSchema
Required function. Must be implemented for Redfish resources.
Source§fn id(&self) -> ResourceIdRef<'_>
fn id(&self) -> ResourceIdRef<'_>
Identifier of the resource.
Source§fn name(&self) -> ResourceNameRef<'_>
fn name(&self) -> ResourceNameRef<'_>
Name of the resource.
Source§fn description(&self) -> Option<ResourceDescriptionRef<'_>>
fn description(&self) -> Option<ResourceDescriptionRef<'_>>
Description of the resource.
Auto Trait Implementations§
impl<B> Freeze for Account<B>
impl<B> !RefUnwindSafe for Account<B>
impl<B> Send for Account<B>
impl<B> Sync for Account<B>
impl<B> Unpin for Account<B>
impl<B> UnsafeUnpin for Account<B>
impl<B> !UnwindSafe for Account<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