pub struct ConfigKey {
pub description: String,
pub default: Option<String>,
pub secret: bool,
}Expand description
One setting a bot declares in its manifest’s config table; the owner sets its value.
Fields§
§description: StringWhat it is, shown to the owner (1-200 scalars).
default: Option<String>Used while the owner has set nothing (≤ 4 KiB); never for a secret.
secret: boolMasked wherever it is shown, and never logged.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ConfigKey
impl<'de> Deserialize<'de> for ConfigKey
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 ConfigKey
impl StructuralPartialEq for ConfigKey
Auto Trait Implementations§
impl Freeze for ConfigKey
impl RefUnwindSafe for ConfigKey
impl Send for ConfigKey
impl Sync for ConfigKey
impl Unpin for ConfigKey
impl UnsafeUnpin for ConfigKey
impl UnwindSafe for ConfigKey
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