pub struct CloudErrorDetailV1 {Show 30 fields
pub code: CloudErrorCode,
pub message: String,
pub retry_after_s: Option<u64>,
pub limit: Option<u64>,
pub used: Option<u64>,
pub resource: Option<String>,
pub reset_at: Option<String>,
pub cooldown_days: Option<u32>,
pub member: Option<String>,
pub level: Option<String>,
pub action: Option<String>,
pub expected: Option<u64>,
pub actual: Option<u64>,
pub min_instance: Option<String>,
pub kind: Option<CloudUploadKind>,
pub reason: Option<String>,
pub field: Option<String>,
pub number: Option<u64>,
pub check: Option<String>,
pub role: Option<String>,
pub agent_role: Option<String>,
pub feature: Option<String>,
pub plan_needed: Option<String>,
pub plan: Option<String>,
pub next_step: Option<String>,
pub limit_bytes: Option<u64>,
pub used_bytes: Option<u64>,
pub limit_bytes_per_hour: Option<u64>,
pub seats: Option<u64>,
pub per_seat: Option<u64>,
}Expand description
The error object.
Fields§
§code: CloudErrorCode§message: StringHuman-readable, safe to show; never contains secrets or tokens.
retry_after_s: Option<u64>§limit: Option<u64>instance_limit: seats in the plan; quota_exceeded: the quota
(bytes for transfer_bytes, so wider than 32 bits).
used: Option<u64>instance_limit: seats in use; quota_exceeded: what is used.
resource: Option<String>quota_exceeded: the quota (registered_instances, private_vaults,
transfer_bytes, bus_messages, or one a newer Cloud adds).
reset_at: Option<String>quota_exceeded: when it frees (RFC 3339; null when nothing frees
by itself).
cooldown_days: Option<u32>quota_exceeded registered_instances: the Personal slot cool-down.
member: Option<String>policy_denied: the dotted member path that refused.
level: Option<String>policy_denied: the outermost level whose document refuses.
action: Option<String>policy_denied of consent_required_for: the action.
expected: Option<u64>revision_conflict: revision the client expected.
actual: Option<u64>revision_conflict: current revision.
min_instance: Option<String>upgrade_required: lowest engine version accepted.
kind: Option<CloudUploadKind>upload_disabled: which upload the organization switched off.
reason: Option<String>1.5: machine-readable detail of the code ([a-z_], ≤ 64), e.g.
required.
field: Option<String>1.5: the request field the error is about (invalid_request).
number: Option<u64>1.6: the proposal an error is about (proposal_state, not_found).
check: Option<String>not_permitted (Cloud task #17): the check that failed, presence
(the agent has no live presence on the bus) or role (present in
another role).
role: Option<String>not_permitted: the task’s role.
agent_role: Option<String>not_permitted with check: role: the role the agent is present in.
feature: Option<String>2.x plan_required: the feature the plan lacks (repos,
internal_vaults, …; absent from a 1.x Cloud, where it means Cloud
itself). limit/used carry a counted feature’s numbers.
feature_disabled: the feature switched off on this Cloud
(instance_metrics).
plan_needed: Option<String>2.x plan_required: the lowest plan that includes feature
(pro, team, enterprise).
plan: Option<String>Limit refusals (quota_exceeded, storage_quota_exceeded,
upload_rate_limited, instance_limit, plan_required): the
workspace’s plan (personal, team, enterprise, locked).
next_step: Option<String>Limit refusals: what helps (subscribe, top_up, upgrade_team,
add_seats, contact, wait, or one a newer service adds).
limit_bytes: Option<u64>storage_quota_exceeded: the storage quota in bytes.
used_bytes: Option<u64>storage_quota_exceeded: the storage used in bytes.
limit_bytes_per_hour: Option<u64>upload_rate_limited: the upload allowance per sliding hour.
seats: Option<u64>instance_limit in Team: the workspace’s seats.
per_seat: Option<u64>instance_limit in Team: the allowance of each seat.
Implementations§
Source§impl CloudErrorDetailV1
impl CloudErrorDetailV1
Sourcepub fn new(code: CloudErrorCode, message: impl Into<String>) -> Self
pub fn new(code: CloudErrorCode, message: impl Into<String>) -> Self
An error with only code and message.