pub struct ProviderAccountResponse {Show 17 fields
pub alert_threshold: f64,
pub auth_failed_at: Option<DateTime<Utc>>,
pub created_at: DateTime<Utc>,
pub created_by: Option<Uuid>,
pub display_name: String,
pub enabled: bool,
pub expires_at: DateTime<Utc>,
pub id: Uuid,
pub kind: String,
pub max_concurrency: Option<i32>,
pub name: String,
pub plan: Option<String>,
pub priority: i32,
pub state: AccountState,
pub tags: Vec<String>,
pub updated_at: DateTime<Utc>,
pub windows: Vec<AccountWindowResponse>,
}Expand description
A Provider Account, without its credential.
JSON schema
{
"description": "A Provider Account, without its credential.",
"type": "object",
"required": [
"alert_threshold",
"created_at",
"display_name",
"enabled",
"expires_at",
"id",
"kind",
"name",
"priority",
"state",
"tags",
"updated_at",
"windows"
],
"properties": {
"alert_threshold": {
"description": "Alert threshold.",
"type": "number",
"format": "double"
},
"auth_failed_at": {
"description": "When the provider last rejected the credential.",
"type": [
"string",
"null"
],
"format": "date-time"
},
"created_at": {
"description": "Creation timestamp.",
"type": "string",
"format": "date-time"
},
"created_by": {
"description": "Creating user.",
"type": [
"string",
"null"
],
"format": "uuid"
},
"display_name": {
"description": "Human-readable name.",
"type": "string"
},
"enabled": {
"description": "Whether the account may be selected.",
"type": "boolean"
},
"expires_at": {
"description": "When the credential expires.",
"type": "string",
"format": "date-time"
},
"id": {
"description": "Account ID.",
"type": "string",
"format": "uuid"
},
"kind": {
"description": "Account kind.",
"type": "string"
},
"max_concurrency": {
"description": "Maximum concurrent steps, `null` for unlimited.",
"type": [
"integer",
"null"
],
"format": "int32",
"minimum": 0.0
},
"name": {
"description": "Unique slug.",
"type": "string"
},
"plan": {
"description": "Subscription plan.",
"type": [
"string",
"null"
]
},
"priority": {
"description": "Priority, lower is preferred.",
"type": "integer",
"format": "int32"
},
"state": {
"$ref": "#/components/schemas/AccountState"
},
"tags": {
"description": "Tags.",
"type": "array",
"items": {
"type": "string"
}
},
"updated_at": {
"description": "Last update timestamp.",
"type": "string",
"format": "date-time"
},
"windows": {
"description": "Latest windows.",
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountWindowResponse"
}
}
}
}
```ignore
</details>Fields§
§alert_threshold: f64Alert threshold.
auth_failed_at: Option<DateTime<Utc>>When the provider last rejected the credential.
created_at: DateTime<Utc>Creation timestamp.
created_by: Option<Uuid>Creating user.
display_name: StringHuman-readable name.
enabled: boolWhether the account may be selected.
expires_at: DateTime<Utc>When the credential expires.
id: UuidAccount ID.
kind: StringAccount kind.
max_concurrency: Option<i32>Maximum concurrent steps, null for unlimited.
name: StringUnique slug.
plan: Option<String>Subscription plan.
priority: i32Priority, lower is preferred.
state: AccountStateTags.
updated_at: DateTime<Utc>Last update timestamp.
windows: Vec<AccountWindowResponse>Latest windows.
Implementations§
Source§impl ProviderAccountResponse
impl ProviderAccountResponse
pub fn builder() -> ProviderAccountResponse
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
Source§impl From<ProviderAccountResponse> for ProviderAccountResponse
impl From<ProviderAccountResponse> for ProviderAccountResponse
Source§fn from(value: ProviderAccountResponse) -> Self
fn from(value: ProviderAccountResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for ProviderAccountResponse
impl Serialize for ProviderAccountResponse
Source§impl TryFrom<ProviderAccountResponse> for ProviderAccountResponse
impl TryFrom<ProviderAccountResponse> for ProviderAccountResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ProviderAccountResponse) -> Result<Self, ConversionError>
fn try_from(value: ProviderAccountResponse) -> Result<Self, ConversionError>
Performs the conversion.
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