Debian Codegraph @

src/helper/cascade.rs

raw symbols SCIP
1 use craterust-analyzer cargo gix-credentials 0.38.0 crate/::{helperrust-analyzer cargo gix-credentials 0.38.0 helper/, helperrust-analyzer cargo gix-credentials 0.38.0 helper/::Cascaderust-analyzer cargo gix-credentials 0.38.0 helper/Cascade#, protocolrust-analyzer cargo gix-credentials 0.38.0 protocol/, protocolrust-analyzer cargo gix-credentials 0.38.0 protocol/::Contextrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#, Programrust-analyzer cargo gix-credentials 0.38.0 Program#};
2
3 impl Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default# for Cascaderust-analyzer cargo gix-credentials 0.38.0 helper/Cascade# {
4 fn defaultrust-analyzer cargo gix-credentials 0.38.0 helper/cascade/impl#[Cascade][Default]default().() -> Selfrust-analyzer cargo gix-credentials 0.38.0 helper/cascade/impl#[Cascade][Default] {
5 Cascaderust-analyzer cargo gix-credentials 0.38.0 helper/Cascade# {
6 programsrust-analyzer cargo gix-credentials 0.38.0 helper/Cascade#programs.: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T>`]new().(),
7 stderrrust-analyzer cargo gix-credentials 0.38.0 helper/Cascade#stderr.: true,
8 use_http_pathrust-analyzer cargo gix-credentials 0.38.0 helper/Cascade#use_http_path.: false,
9 query_user_onlyrust-analyzer cargo gix-credentials 0.38.0 helper/Cascade#query_user_only.: false,
10 }
11 }
12 }
13
14 /// Initialization
15 impl Cascaderust-analyzer cargo gix-credentials 0.38.0 helper/Cascade# {
16 /// Return the programs to run for the current platform.
17 ///
18 /// These are typically used as basis for all credential cascade invocations, with configured programs following afterwards.
19 ///
20 /// # Note
21 ///
22 /// These defaults emulate what typical git installations may use these days, as in fact it's a configurable which comes
23 /// from installation-specific configuration files which we cannot know (or guess at best).
24 /// This seems like an acceptable trade-off as helpers are ignored if they fail or are not existing.
25 pub fn platform_builtinrust-analyzer cargo gix-credentials 0.38.0 helper/cascade/impl#[Cascade]platform_builtin().() -> Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Programrust-analyzer cargo gix-credentials 0.38.0 Program#> {
26 if cfgrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/cfg!!(target_os = "macos") {
27 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("osxkeychain")
28 } else if cfgrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/cfg!!(target_os = "linux") {
29 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("libsecret")
30 } else if cfgrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/cfg!!(target_os = "windows") {
31 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("manager-core")
32 } else {
33 Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#
34 }
35 .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(|name| vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![Programrust-analyzer cargo gix-credentials 0.38.0 Program#::from_custom_definitionrust-analyzer cargo gix-credentials 0.38.0 program/impl#[Program]from_custom_definition().(name)])
36 .unwrap_or_defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap_or_default().()
37 }
38 }
39
40 /// Builder
41 impl Cascaderust-analyzer cargo gix-credentials 0.38.0 helper/Cascade# {
42 /// Extend the list of programs to run `programs`.
43 pub fn extendrust-analyzer cargo gix-credentials 0.38.0 helper/cascade/impl#[Cascade]extend().(mut self, programs: impl IntoIteratorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/collect/IntoIterator#<Itemrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/collect/IntoIterator#Item# = Programrust-analyzer cargo gix-credentials 0.38.0 Program#>) -> Selfrust-analyzer cargo gix-credentials 0.38.0 helper/cascade/impl#[Cascade] {
44 self.programsrust-analyzer cargo gix-credentials 0.38.0 helper/Cascade#programs..extendrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Extend<T>`]extend().(programs);
45 self
46 }
47 /// If `toggle` is true, http(s) urls will use the path portions of the url to obtain a credential for.
48 ///
49 /// Otherwise, they will only take the user name into account.
50 pub fn use_http_pathrust-analyzer cargo gix-credentials 0.38.0 helper/cascade/impl#[Cascade]use_http_path().(mut self, toggle: bool) -> Selfrust-analyzer cargo gix-credentials 0.38.0 helper/cascade/impl#[Cascade] {
51 self.use_http_pathrust-analyzer cargo gix-credentials 0.38.0 helper/Cascade#use_http_path. = toggle;
52 self
53 }
54
55 /// If `toggle` is true, a bogus password will be provided to prevent any helper program from prompting for it, nor will
56 /// we prompt for the password. The resulting identity will have a bogus password and it's expected to not be used by the
57 /// consuming transport.
58 pub fn query_user_onlyrust-analyzer cargo gix-credentials 0.38.0 helper/cascade/impl#[Cascade]query_user_only().(mut self, toggle: bool) -> Selfrust-analyzer cargo gix-credentials 0.38.0 helper/cascade/impl#[Cascade] {
59 self.query_user_onlyrust-analyzer cargo gix-credentials 0.38.0 helper/Cascade#query_user_only. = toggle;
60 self
61 }
62 }
63
64 /// Finalize
65 impl Cascaderust-analyzer cargo gix-credentials 0.38.0 helper/Cascade# {
66 /// Invoke the cascade by `invoking` each program with `action`, and configuring potential prompts with `prompt` options.
67 /// The latter can also be used to disable the prompt entirely when setting the `mode` to [`Disable`][gix_prompt::Mode::Disable];=.
68 ///
69 /// When _getting_ credentials, all programs are asked until the credentials are complete, stopping the cascade.
70 /// When _storing_ or _erasing_ all programs are instructed in order.
71 #[allow(clippy::result_large_err)]
72 pub fn invokerust-analyzer cargo gix-credentials 0.38.0 helper/cascade/impl#[Cascade]invoke().(&mut self, mut action: helperrust-analyzer cargo gix-credentials 0.38.0 helper/::Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action#, mut prompt: gix_promptrust-analyzer cargo gix-prompt 0.15.0 crate/::Optionsrust-analyzer cargo gix-prompt 0.15.0 types/Options#<'_>) -> protocolrust-analyzer cargo gix-credentials 0.38.0 protocol/::Resultrust-analyzer cargo gix-credentials 0.38.0 protocol/Result# {
73 let mut url = action
74 .context_mutrust-analyzer cargo gix-credentials 0.38.0 helper/impl#[Action]context_mut().()
75 .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(|ctx| {
76 #[allow(clippy::manual_inspect)] /* false positive */
77 ctx.destructure_url_in_placerust-analyzer cargo gix-credentials 0.38.0 protocol/context/mutate/impl#[Context]destructure_url_in_place().(self.use_http_pathrust-analyzer cargo gix-credentials 0.38.0 helper/Cascade#use_http_path.).maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map().(|ctx| {
78 if self.query_user_onlyrust-analyzer cargo gix-credentials 0.38.0 helper/Cascade#query_user_only. && ctx.passwordrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#password..is_nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]is_none().() {
79 ctx.passwordrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#password. = Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#("".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().());
80 }
81 ctx
82 })
83 })
84 .transposerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<Result<T, E>>`]transpose().()?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().
85 .and_thenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]and_then().(|ctx| ctx.urlrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#url..takerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]take().());
86
87 for program in &mut self.programsrust-analyzer cargo gix-credentials 0.38.0 helper/Cascade#programs. {
88 program.stderrrust-analyzer cargo gix-credentials 0.38.0 Program#stderr. = self.stderrrust-analyzer cargo gix-credentials 0.38.0 helper/Cascade#stderr.;
89 match helperrust-analyzer cargo gix-credentials 0.38.0 helper/::invokerust-analyzer cargo gix-credentials 0.38.0 helper/invoke/::rawrust-analyzer cargo gix-credentials 0.38.0 helper/invoke/raw().(program, &action) {
90 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => {}
91 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(stdout)) => {
92 let Contextrust-analyzer cargo gix-credentials 0.38.0 protocol/Context# {
93 protocolrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#protocol.,
94 hostrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#host.,
95 pathrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#path.,
96 usernamerust-analyzer cargo gix-credentials 0.38.0 protocol/Context#username.,
97 passwordrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#password.,
98 oauth_refresh_tokenrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#oauth_refresh_token.,
99 password_expiry_utcrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#password_expiry_utc.,
100 urlrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#url.: ctx_url,
101 quitrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#quit.,
102 } = Contextrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#::from_bytesrust-analyzer cargo gix-credentials 0.38.0 protocol/context/serde/decode/impl#[Context]from_bytes().(&stdout)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().;
103 if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(dst_ctx) = action.context_mutrust-analyzer cargo gix-credentials 0.38.0 helper/impl#[Action]context_mut().() {
104 if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(src) = path {
105 dst_ctx.pathrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#path. = Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(src);
106 }
107 if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(src) = password_expiry_utc {
108 dst_ctx.password_expiry_utcrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#password_expiry_utc. = Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(src);
109 }
110 for (src, dst) in [
111 (protocol, &mut dst_ctx.protocolrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#protocol.),
112 (host, &mut dst_ctx.hostrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#host.),
113 (username, &mut dst_ctx.usernamerust-analyzer cargo gix-credentials 0.38.0 protocol/Context#username.),
114 (password, &mut dst_ctx.passwordrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#password.),
115 (oauth_refresh_token, &mut dst_ctx.oauth_refresh_tokenrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#oauth_refresh_token.),
116 ] {
117 if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(src) = src {
118 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().dst = Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(src);
119 }
120 }
121 if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(src) = ctx_url {
122 dst_ctx.urlrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#url. = Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(src);
123 url = dst_ctx.destructure_url_in_placerust-analyzer cargo gix-credentials 0.38.0 protocol/context/mutate/impl#[Context]destructure_url_in_place().(self.use_http_pathrust-analyzer cargo gix-credentials 0.38.0 helper/Cascade#use_http_path.)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch()..urlrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#url..takerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]take().();
124 }
125 if dst_ctx
126 .password_expiry_utcrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#password_expiry_utc.
127 .is_some_andrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]is_some_and().(|expiry_date| expiry_date rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i64][`PartialOrd<Self>`]lt().<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i64][`PartialOrd<Self>`]lt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i64][`PartialOrd<Self>`]lt().gix_daterust-analyzer cargo gix-date 0.15.3 crate/::Timerust-analyzer cargo gix-date 0.15.3 Time#::now_utcrust-analyzer cargo gix-date 0.15.3 time/init/impl#[Time]now_utc().().secondsrust-analyzer cargo gix-date 0.15.3 Time#seconds.)
128 {
129 dst_ctx.password_expiry_utcrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#password_expiry_utc. = Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#;
130 dst_ctx.clear_secretsrust-analyzer cargo gix-credentials 0.38.0 protocol/context/access/impl#[Context]clear_secrets().();
131 }
132 if dst_ctx.usernamerust-analyzer cargo gix-credentials 0.38.0 protocol/Context#username..is_somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]is_some().() && dst_ctx.passwordrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#password..is_somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]is_some().() {
133 break;
134 }
135 if quit.unwrap_or_defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap_or_default().() {
136 dst_ctx.quitrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#quit. = quit;
137 break;
138 }
139 }
140 }
141 Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(helperrust-analyzer cargo gix-credentials 0.38.0 helper/::Errorrust-analyzer cargo gix-credentials 0.38.0 helper/Error#::CredentialsHelperFailedrust-analyzer cargo gix-credentials 0.38.0 helper/Error#CredentialsHelperFailed# { .. }) => continue, // ignore helpers that we can't call
142 Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(err) if action.contextrust-analyzer cargo gix-credentials 0.38.0 helper/impl#[Action]context().().is_somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]is_some().() => return Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(err.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()), // communication errors are fatal when getting credentials
143 Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(_) => {} // for other actions, ignore everything, try the operation
144 }
145 }
146
147 if prompt.moderust-analyzer cargo gix-prompt 0.15.0 types/Options#mode. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq#ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq#ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq#ne().gix_promptrust-analyzer cargo gix-prompt 0.15.0 crate/::Moderust-analyzer cargo gix-prompt 0.15.0 types/Mode#::Disablerust-analyzer cargo gix-prompt 0.15.0 types/Mode#Disable# {
148 if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ctx) = action.context_mutrust-analyzer cargo gix-credentials 0.38.0 helper/impl#[Action]context_mut().() {
149 ctx.urlrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#url. = url;
150 if ctx.usernamerust-analyzer cargo gix-credentials 0.38.0 protocol/Context#username..is_nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]is_none().() {
151 let message = ctx.to_promptrust-analyzer cargo gix-credentials 0.38.0 protocol/context/access/impl#[Context]to_prompt().("Username");
152 prompt.moderust-analyzer cargo gix-prompt 0.15.0 types/Options#mode. = gix_promptrust-analyzer cargo gix-prompt 0.15.0 crate/::Moderust-analyzer cargo gix-prompt 0.15.0 types/Mode#::Visiblerust-analyzer cargo gix-prompt 0.15.0 types/Mode#Visible#;
153 ctx.usernamerust-analyzer cargo gix-credentials 0.38.0 protocol/Context#username. = gix_promptrust-analyzer cargo gix-prompt 0.15.0 crate/::askrust-analyzer cargo gix-prompt 0.15.0 ask().(&message, &prompt)
154 .map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(|err| protocolrust-analyzer cargo gix-credentials 0.38.0 protocol/::Errorrust-analyzer cargo gix-credentials 0.38.0 protocol/Error#::Promptrust-analyzer cargo gix-credentials 0.38.0 protocol/Error#Prompt# {
155 promptrust-analyzer cargo gix-credentials 0.38.0 protocol/Error#Prompt#prompt.: message,
156 sourcerust-analyzer cargo gix-credentials 0.38.0 protocol/Error#Prompt#source.: err,
157 })?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().
158 .intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().();
159 }
160 if ctx.passwordrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#password..is_nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]is_none().() {
161 let message = ctx.to_promptrust-analyzer cargo gix-credentials 0.38.0 protocol/context/access/impl#[Context]to_prompt().("Password");
162 prompt.moderust-analyzer cargo gix-prompt 0.15.0 types/Options#mode. = gix_promptrust-analyzer cargo gix-prompt 0.15.0 crate/::Moderust-analyzer cargo gix-prompt 0.15.0 types/Mode#::Hiddenrust-analyzer cargo gix-prompt 0.15.0 types/Mode#Hidden#;
163 ctx.passwordrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#password. = gix_promptrust-analyzer cargo gix-prompt 0.15.0 crate/::askrust-analyzer cargo gix-prompt 0.15.0 ask().(&message, &prompt)
164 .map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(|err| protocolrust-analyzer cargo gix-credentials 0.38.0 protocol/::Errorrust-analyzer cargo gix-credentials 0.38.0 protocol/Error#::Promptrust-analyzer cargo gix-credentials 0.38.0 protocol/Error#Prompt# {
165 promptrust-analyzer cargo gix-credentials 0.38.0 protocol/Error#Prompt#prompt.: message,
166 sourcerust-analyzer cargo gix-credentials 0.38.0 protocol/Error#Prompt#source.: err,
167 })?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().
168 .intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().();
169 }
170 }
171 }
172
173 protocolrust-analyzer cargo gix-credentials 0.38.0 protocol/::helper_outcome_to_resultrust-analyzer cargo gix-credentials 0.38.0 protocol/helper_outcome_to_result().(
174 action.contextrust-analyzer cargo gix-credentials 0.38.0 helper/impl#[Action]context().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(|ctx| helperrust-analyzer cargo gix-credentials 0.38.0 helper/::Outcomerust-analyzer cargo gix-credentials 0.38.0 helper/Outcome# {
175 usernamerust-analyzer cargo gix-credentials 0.38.0 helper/Outcome#username.: ctx.usernamerust-analyzer cargo gix-credentials 0.38.0 protocol/Context#username..clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`][Clone]clone().(),
176 passwordrust-analyzer cargo gix-credentials 0.38.0 helper/Outcome#password.: ctx.passwordrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#password..clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`][Clone]clone().(),
177 oauth_refresh_tokenrust-analyzer cargo gix-credentials 0.38.0 helper/Outcome#oauth_refresh_token.: ctx.oauth_refresh_tokenrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#oauth_refresh_token..clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`][Clone]clone().(),
178 quitrust-analyzer cargo gix-credentials 0.38.0 helper/Outcome#quit.: ctx.quitrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#quit..unwrap_orrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap_or().(false),
179 nextrust-analyzer cargo gix-credentials 0.38.0 helper/Outcome#next.: ctx.to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/impl#[T][ToOwned]to_owned().().intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
180 }),
181 action,
182 )
183 }
184 }