pub struct ChannelOption {
pub key: String,
pub plugin: String,
pub title: String,
pub two_way: bool,
pub buttons: bool,
pub enabled: bool,
pub configured: bool,
pub ok: bool,
pub status: Option<String>,
pub setting: Option<String>,
pub setting_label: Option<String>,
pub setting_help: Option<String>,
}Expand description
A channel a plugin offers.
Fields§
§key: String<plugin>:<channel>.
plugin: String§title: String“Telegram”.
two_way: boolThe user can answer (replies, buttons).
Approvals can be answered with a tap.
enabled: boolIts plugin is switched on.
configured: boolIts plugin’s required settings are filled in.
ok: boolIts backend says it works (channel_status ok), as of status.
status: Option<String>What its backend last said about itself (“Connected as @byob_jesse_bot”, “Telegram refused the bot token”), or why it isn’t running.
setting: Option<String>The setting the user fills in to set it up (Telegram: BOT_TOKEN), if any.
setting_label: Option<String>That setting’s label (“Bot token”).
setting_help: Option<String>That setting’s help (the setup steps).
Trait Implementations§
Source§impl Clone for ChannelOption
impl Clone for ChannelOption
Source§impl Debug for ChannelOption
impl Debug for ChannelOption
Source§impl Default for ChannelOption
impl Default for ChannelOption
Source§impl<'de> Deserialize<'de> for ChannelOption
impl<'de> Deserialize<'de> for ChannelOption
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 ChannelOption
Source§impl PartialEq for ChannelOption
impl PartialEq for ChannelOption
Source§impl Serialize for ChannelOption
impl Serialize for ChannelOption
impl StructuralPartialEq for ChannelOption
Auto Trait Implementations§
impl Forget for ChannelOption
impl Freeze for ChannelOption
impl Move for ChannelOption
impl RefUnwindSafe for ChannelOption
impl Send for ChannelOptionwhere
RawVecInner: Send,
impl Sync for ChannelOptionwhere
RawVecInner: Sync,
impl Unpin for ChannelOption
impl UnsafeUnpin for ChannelOption
impl UnwindSafe for ChannelOptionwhere
RawVecInner: UnwindSafe,
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