pub struct DatabaseTrafficStateResponse {
pub bdb_id: Option<i32>,
pub traffic_status: Option<String>,
pub can_resume: Option<bool>,
pub resume_in_progress: Option<bool>,
pub stop_reason: Option<String>,
pub resume_eligible_at: Option<String>,
}Expand description
Traffic state for a database, returned by the .../traffic endpoints.
Matches the DatabaseTrafficStateResponse schema. Reports whether traffic
to the database is currently stopped and, if so, whether it can be resumed.
Shared by the Pro and Essentials (fixed) database traffic endpoints.
Fields§
§bdb_id: Option<i32>Database (BDB) ID the traffic state applies to.
traffic_status: Option<String>Current traffic status (e.g. "active", "stopped").
can_resume: Option<bool>Whether traffic can currently be resumed.
resume_in_progress: Option<bool>Whether a resume operation is already in progress.
stop_reason: Option<String>Reason traffic was stopped, when applicable.
resume_eligible_at: Option<String>Timestamp from which traffic becomes eligible to resume.
Trait Implementations§
Source§impl Clone for DatabaseTrafficStateResponse
impl Clone for DatabaseTrafficStateResponse
Source§fn clone(&self) -> DatabaseTrafficStateResponse
fn clone(&self) -> DatabaseTrafficStateResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DatabaseTrafficStateResponse
impl Debug for DatabaseTrafficStateResponse
Source§impl<'de> Deserialize<'de> for DatabaseTrafficStateResponse
impl<'de> Deserialize<'de> for DatabaseTrafficStateResponse
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 DatabaseTrafficStateResponse
impl RefUnwindSafe for DatabaseTrafficStateResponse
impl Send for DatabaseTrafficStateResponse
impl Sync for DatabaseTrafficStateResponse
impl Unpin for DatabaseTrafficStateResponse
impl UnsafeUnpin for DatabaseTrafficStateResponse
impl UnwindSafe for DatabaseTrafficStateResponse
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