#[non_exhaustive]pub enum Interaction {
AdminPassword {
via: Prompt,
},
VendorAgreement {
app: &'static str,
name: &'static str,
url: &'static str,
},
VendorWindow {
app: &'static str,
},
AllowSystemExtension {
vendor: &'static str,
},
Restart,
Relogin,
LongBuild {
minutes: u16,
},
DownloadByHand {
vendor: &'static str,
url: &'static str,
},
}Expand description
One thing an install asks of the person at the computer. None at all (an empty list) means it installs on its own.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AdminPassword
The OS asks for an administrator’s password (or approval), in a window of its own.
VendorAgreement
The vendor’s app shows its agreement (at its first start), and the user accepts it there, in the vendor’s own window: nothing accepts it for them. The tool works once they have.
Fields
VendorWindow
A vendor’s installer opens a window of its own that waits for the user.
AllowSystemExtension
The OS blocks the vendor’s system extension until the user allows it in System Settings
(Privacy & Security); a restart then loads it (Interaction::Restart follows).
Restart
The computer is restarted before the tool works.
Relogin
The user signs out and back in before the tool works (a group they joined).
LongBuild
The install builds from source, which takes long.
DownloadByHand
Nothing installs it unattended: its vendor offers it only from its own page (behind an account or a licence). The user downloads and installs it there, then checks again: the tool’s detection reads it as present once it is installed.
Trait Implementations§
Source§impl Clone for Interaction
impl Clone for Interaction
impl Copy for Interaction
Source§impl Debug for Interaction
impl Debug for Interaction
impl Eq for Interaction
Source§impl Hash for Interaction
impl Hash for Interaction
Source§impl PartialEq for Interaction
impl PartialEq for Interaction
Source§impl Serialize for Interaction
impl Serialize for Interaction
impl StructuralPartialEq for Interaction
Source§impl TS for Interaction
impl TS for Interaction
Source§type WithoutGenerics = Interaction
type WithoutGenerics = Interaction
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or (). The only requirement for these dummy types is that
EXPORT_TO must be None. Read moreSource§type OptionInnerType = Interaction
type OptionInnerType = Interaction
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributesSource§fn decl_concrete(cfg: &Config) -> String
fn decl_concrete(cfg: &Config) -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl(cfg: &Config) -> String
fn decl(cfg: &Config) -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline(cfg: &Config) -> String
fn inline(cfg: &Config) -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened(cfg: &Config) -> String
fn inline_flattened(cfg: &Config) -> String
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
T should be exported, relative to the output directory.
The returned path does not include any base directory. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
Source§fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export_all. Read moreSource§fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export. Read moreSource§fn export_to_string(cfg: &Config) -> Result<String, ExportError>where
Self: 'static,
fn export_to_string(cfg: &Config) -> Result<String, ExportError>where
Self: 'static,
Auto Trait Implementations§
impl Forget for Interaction
impl Freeze for Interaction
impl Move for Interaction
impl RefUnwindSafe for Interaction
impl Send for Interaction
impl Sync for Interaction
impl Unpin for Interaction
impl UnsafeUnpin for Interactionwhere
&'static str: UnsafeUnpin,
impl UnwindSafe for Interactionwhere
&'static str: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.