pub struct ComponentHealth {
pub id: String,
pub channel: String,
pub account: String,
pub bot_id: Option<String>,
pub user_id: Option<String>,
pub enabled: bool,
pub state: ComponentState,
pub last_success_unix_seconds: Option<u64>,
pub error: Option<String>,
pub restarts: u64,
pub remote_tools: RemoteTools,
pub senders: Option<Senders>,
}Expand description
The health of one channel account.
Fields§
§id: StringComponent ID, <channel>:<account>.
channel: StringThe chat channel this account belongs to, such as wechat.
account: StringThe account name within the channel.
bot_id: Option<String>The platform’s ID of the bot account, when known.
user_id: Option<String>The platform’s ID of the account’s owner, when known.
enabled: boolWhether the account should run.
state: ComponentStateLifecycle state.
last_success_unix_seconds: Option<u64>When the platform last answered successfully.
error: Option<String>The latest error, if any.
restarts: u64Restarts since the daemon started.
remote_tools: RemoteToolsEffective remote tool authority; owner only when the owner ID is known.
senders: Option<Senders>Who the account answers, as set; owner with no known owner ID
answers nobody. None from daemons before 0.3.0, which answer anyone.
Trait Implementations§
Source§impl Clone for ComponentHealth
impl Clone for ComponentHealth
Source§impl Debug for ComponentHealth
impl Debug for ComponentHealth
Source§impl<'de> Deserialize<'de> for ComponentHealth
impl<'de> Deserialize<'de> for ComponentHealth
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
impl Eq for ComponentHealth
Source§impl PartialEq for ComponentHealth
impl PartialEq for ComponentHealth
Source§impl Serialize for ComponentHealth
impl Serialize for ComponentHealth
impl StructuralPartialEq for ComponentHealth
Auto Trait Implementations§
impl Freeze for ComponentHealth
impl RefUnwindSafe for ComponentHealth
impl Send for ComponentHealth
impl Sync for ComponentHealth
impl Unpin for ComponentHealth
impl UnsafeUnpin for ComponentHealth
impl UnwindSafe for ComponentHealth
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