pub struct GitHubAuthState {Show 17 fields
pub setup_mode: SetupMode,
pub mode_selection_index: usize,
pub token_input: TextInput,
pub repo_name_input: TextInput,
pub repo_location_input: TextInput,
pub is_private: bool,
pub step: GitHubAuthStep,
pub error_message: Option<String>,
pub status_message: Option<String>,
pub help_scroll: usize,
pub input_focused: bool,
pub focused_field: GitHubAuthField,
pub is_editing_token: bool,
pub repo_already_configured: bool,
pub setup_data: Option<GitHubSetupData>,
pub local_repo_path_input: TextInput,
pub local_step: LocalSetupStep,
}Expand description
GitHub auth state (also handles local repo setup)
Fields§
§setup_mode: SetupMode§mode_selection_index: usize§token_input: TextInput§repo_name_input: TextInput§repo_location_input: TextInput§is_private: bool§step: GitHubAuthStep§error_message: Option<String>§status_message: Option<String>§help_scroll: usize§input_focused: bool§focused_field: GitHubAuthField§is_editing_token: bool§repo_already_configured: bool§setup_data: Option<GitHubSetupData>Intermediate data stored during GitHub setup process
local_repo_path_input: TextInput§local_step: LocalSetupStepTrait Implementations§
Source§impl Clone for GitHubAuthState
impl Clone for GitHubAuthState
Source§fn clone(&self) -> GitHubAuthState
fn clone(&self) -> GitHubAuthState
Returns a duplicate of the value. Read more
1.0.0 · 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 GitHubAuthState
impl Debug for GitHubAuthState
Auto Trait Implementations§
impl Freeze for GitHubAuthState
impl RefUnwindSafe for GitHubAuthState
impl Send for GitHubAuthState
impl Sync for GitHubAuthState
impl Unpin for GitHubAuthState
impl UnwindSafe for GitHubAuthState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more