pub struct AddonSetting {
pub param: AddonParam,
pub secret: bool,
}Expand description
One thing an addon needs configuring once, rather than per key.
ADR-0013. A client id, an endpoint, a token. Declared with the same vocabulary as an action’s parameters so the interface renders a settings page with no code per addon, which is the same FR-048 reasoning.
Fields§
§param: AddonParamWhat to ask for.
secret: boolWhether this is a credential.
A secret is kept in the OS credential store rather than in a file, and is never sent back — the interface can set one and can ask whether one exists, and cannot read it. FR-026 makes profiles shareable, and a refresh token that could be read back is one that ends up in a paste.
Trait Implementations§
Source§impl Clone for AddonSetting
impl Clone for AddonSetting
Source§fn clone(&self) -> AddonSetting
fn clone(&self) -> AddonSetting
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 AddonSetting
impl Debug for AddonSetting
Source§impl PartialEq for AddonSetting
impl PartialEq for AddonSetting
Source§fn eq(&self, other: &AddonSetting) -> bool
fn eq(&self, other: &AddonSetting) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AddonSetting
impl Eq for AddonSetting
impl StructuralPartialEq for AddonSetting
Auto Trait Implementations§
impl Freeze for AddonSetting
impl RefUnwindSafe for AddonSetting
impl Send for AddonSetting
impl Sync for AddonSetting
impl Unpin for AddonSetting
impl UnsafeUnpin for AddonSetting
impl UnwindSafe for AddonSetting
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