pub struct ProviderAccountResponse {Show 17 fields
pub id: Uuid,
pub name: String,
pub display_name: String,
pub kind: String,
pub enabled: bool,
pub priority: i32,
pub tags: Vec<String>,
pub max_concurrency: Option<u32>,
pub alert_threshold: f64,
pub expires_at: DateTime<Utc>,
pub plan: Option<String>,
pub created_by: Option<Uuid>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub auth_failed_at: Option<DateTime<Utc>>,
pub state: AccountState,
pub windows: Vec<AccountWindowResponse>,
}Expand description
A Provider Account, without its credential.
Fields§
§id: UuidAccount ID.
name: StringUnique slug.
display_name: StringHuman-readable name.
kind: StringAccount kind.
enabled: boolWhether the account may be selected.
priority: i32Priority, lower is preferred.
Tags.
max_concurrency: Option<u32>Maximum concurrent steps, null for unlimited.
alert_threshold: f64Alert threshold.
expires_at: DateTime<Utc>When the credential expires.
plan: Option<String>Subscription plan.
created_by: Option<Uuid>Creating user.
created_at: DateTime<Utc>Creation timestamp.
updated_at: DateTime<Utc>Last update timestamp.
auth_failed_at: Option<DateTime<Utc>>When the provider last rejected the credential.
state: AccountStateDerived state.
windows: Vec<AccountWindowResponse>Latest windows.
Implementations§
Source§impl ProviderAccountResponse
impl ProviderAccountResponse
Sourcepub fn new(
account: ProviderAccount,
windows: Vec<ProviderAccountWindow>,
state: AccountState,
) -> Self
pub fn new( account: ProviderAccount, windows: Vec<ProviderAccountWindow>, state: AccountState, ) -> Self
Build the response from an account, its windows and its derived state.
Trait Implementations§
Source§impl Clone for ProviderAccountResponse
impl Clone for ProviderAccountResponse
Source§impl Debug for ProviderAccountResponse
impl Debug for ProviderAccountResponse
Source§impl<'de> Deserialize<'de> for ProviderAccountResponse
impl<'de> Deserialize<'de> for ProviderAccountResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProviderAccountResponse
impl RefUnwindSafe for ProviderAccountResponse
impl Send for ProviderAccountResponse
impl Sync for ProviderAccountResponse
impl Unpin for ProviderAccountResponse
impl UnsafeUnpin for ProviderAccountResponse
impl UnwindSafe for ProviderAccountResponse
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