pub struct Identity<'a> { /* private fields */ }Implementations§
Source§impl<'a> Identity<'a>
impl<'a> Identity<'a>
Sourcepub async fn get(&self) -> Result<GetIdentityResponseContent, Error>
pub async fn get(&self) -> Result<GetIdentityResponseContent, Error>
Get the current identity (authenticated user profile)
Get navigation items
Sourcepub async fn update_first_week_day(
&self,
body: &UpdateFirstWeekDayRequestContent,
) -> Result<UpdateFirstWeekDayResponseContent, Error>
pub async fn update_first_week_day( &self, body: &UpdateFirstWeekDayRequestContent, ) -> Result<UpdateFirstWeekDayResponseContent, Error>
Set which day the identity’s calendar weeks start on. Answers the stored preference. The write reaches every HEY client — web, mobile and this SDK read the same identity preference.
Sourcepub async fn update_time_format(
&self,
body: &UpdateTimeFormatRequestContent,
) -> Result<UpdateTimeFormatResponseContent, Error>
pub async fn update_time_format( &self, body: &UpdateTimeFormatRequestContent, ) -> Result<UpdateTimeFormatResponseContent, Error>
Set whether HEY renders times on a 12-hour or a 24-hour clock. Answers the stored preference. The parameter is the web toggle’s, said honestly: true for the 24-hour clock, false for the 12-hour one.
Source§impl Identity<'_>
impl Identity<'_>
Sourcepub async fn set_first_week_day(&self, day: Weekday) -> Result<Weekday, Error>
pub async fn set_first_week_day(&self, day: Weekday) -> Result<Weekday, Error>
Sets which day the identity’s calendar weeks start on, and answers the day HEY stored. The write reaches every HEY client — web, mobile and this SDK read the same identity preference.
Sourcepub async fn set_time_format(
&self,
format: TimeFormat,
) -> Result<TimeFormat, Error>
pub async fn set_time_format( &self, format: TimeFormat, ) -> Result<TimeFormat, Error>
Sets whether HEY renders times on a 12-hour or a 24-hour clock, and answers the format HEY stored.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Identity<'a>
impl<'a> !UnwindSafe for Identity<'a>
impl<'a> Freeze for Identity<'a>
impl<'a> Send for Identity<'a>
impl<'a> Sync for Identity<'a>
impl<'a> Unpin for Identity<'a>
impl<'a> UnsafeUnpin for Identity<'a>
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