pub struct OtaSettings {
pub github_token: Option<SecretString>,
}Expand description
Configuration for Over-the-Air (OTA) update feature.
Stores the GitHub personal access token required for downloading build artifacts from pull requests.
§Security
The GitHub token is stored using SecretString from the secrecy crate,
which prevents accidental exposure in logs or debug output. The token is
automatically wrapped when loaded from the configuration file and unwrapped
only when needed for API authentication.
Fields§
§github_token: Option<SecretString>GitHub personal access token with workflow artifact read permissions. Required for authenticated API access to download build artifacts.
When serialized, the token is stored as plain text in the configuration
file. However, once loaded into memory, it is wrapped in SecretString
to prevent accidental exposure.
For development, you can set the GH_TOKEN environment variable to have it automatically
loaded into the default settings.
Trait Implementations§
Source§impl Clone for OtaSettings
impl Clone for OtaSettings
Source§fn clone(&self) -> OtaSettings
fn clone(&self) -> OtaSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OtaSettings
impl Debug for OtaSettings
Source§impl Default for OtaSettings
impl Default for OtaSettings
Source§impl<'de> Deserialize<'de> for OtaSettingswhere
OtaSettings: Default,
impl<'de> Deserialize<'de> for OtaSettingswhere
OtaSettings: Default,
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>,
Auto Trait Implementations§
impl Freeze for OtaSettings
impl RefUnwindSafe for OtaSettings
impl Send for OtaSettings
impl Sync for OtaSettings
impl Unpin for OtaSettings
impl UnwindSafe for OtaSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.