pub struct UserStatus {Show 13 fields
pub email: String,
pub user_name: String,
pub user_id: String,
pub team_id: String,
pub org_id: String,
pub org_name: String,
pub plan: String,
pub daily_quota_remaining_percent: i64,
pub weekly_quota_remaining_percent: i64,
pub daily_quota_reset_at: Option<DateTime<Utc>>,
pub weekly_quota_reset_at: Option<DateTime<Utc>>,
pub plan_start: Option<DateTime<Utc>>,
pub plan_end: Option<DateTime<Utc>>,
}Expand description
DevinUserStatus: plan, quota and account metadata from GetUserStatus.
Fields§
§email: String§user_name: String§user_id: String§team_id: String§org_id: String§org_name: String§plan: String§daily_quota_remaining_percent: i64§weekly_quota_remaining_percent: i64§daily_quota_reset_at: Option<DateTime<Utc>>§weekly_quota_reset_at: Option<DateTime<Utc>>§plan_start: Option<DateTime<Utc>>§plan_end: Option<DateTime<Utc>>Implementations§
Source§impl UserStatus
impl UserStatus
Sourcepub fn quota_signals(&self) -> Vec<(&'static str, String)>
pub fn quota_signals(&self) -> Vec<(&'static str, String)>
The quota observation signals Go writes on refresh and login.
Trait Implementations§
Source§impl Clone for UserStatus
impl Clone for UserStatus
Source§impl Debug for UserStatus
impl Debug for UserStatus
Source§impl Default for UserStatus
impl Default for UserStatus
Source§impl PartialEq for UserStatus
impl PartialEq for UserStatus
impl StructuralPartialEq for UserStatus
Auto Trait Implementations§
impl Forget for UserStatus
impl Freeze for UserStatus
impl Move for UserStatus
impl RefUnwindSafe for UserStatus
impl Send for UserStatus
impl Sync for UserStatus
impl Unpin for UserStatus
impl UnsafeUnpin for UserStatus
impl UnwindSafe for UserStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more