pub struct EngineInfo {
pub engine_version: String,
pub protocol: u32,
pub pid: u32,
pub mode: String,
pub connected: bool,
pub host: Option<String>,
pub name: Option<String>,
pub first_party_app: Option<String>,
pub registrants: u32,
pub billing: Option<BillingInfo>,
}Expand description
The GET /engine/info discovery shape.
Fields§
§engine_version: String§protocol: u32§pid: u32§mode: String§connected: bool§host: Option<String>§name: Option<String>§first_party_app: Option<String>§registrants: u32§billing: Option<BillingInfo>Implementations§
Source§impl EngineInfo
impl EngineInfo
Sourcepub fn needs_renewal(&self) -> bool
pub fn needs_renewal(&self) -> bool
True when the subscription has lapsed and the person must renew to keep serving. An embed maps this to a plain “renew to keep serving” prompt.
Trait Implementations§
Source§impl Clone for EngineInfo
impl Clone for EngineInfo
Source§fn clone(&self) -> EngineInfo
fn clone(&self) -> EngineInfo
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 EngineInfo
impl Debug for EngineInfo
Source§impl Default for EngineInfo
impl Default for EngineInfo
Source§fn default() -> EngineInfo
fn default() -> EngineInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EngineInfo
impl<'de> Deserialize<'de> for EngineInfo
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 EngineInfo
impl RefUnwindSafe for EngineInfo
impl Send for EngineInfo
impl Sync for EngineInfo
impl Unpin for EngineInfo
impl UnsafeUnpin for EngineInfo
impl UnwindSafe for EngineInfo
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