| 1 | use bstrrust-analyzer cargo bstr 1.12.1 crate/::{BStrrust-analyzer cargo bstr 1.12.1 bstr/BStr#, BStringrust-analyzer cargo bstr 1.12.1 bstring/BString#}; |
| 2 | |
| 3 | use craterust-analyzer cargo gix-credentials 0.38.0 crate/::{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#}; |
| 4 | |
| 5 | /// A list of helper programs to run in order to obtain credentials. |
| 6 | #[allow(dead_code)] |
| 7 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)] |
| 8 | pub struct Cascaderust-analyzer cargo gix-credentials 0.38.0 helper/Cascade# { |
| 9 | /// The programs to run in order to obtain credentials |
| 10 | pub 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#<Programrust-analyzer cargo gix-credentials 0.38.0 Program#>, |
| 11 | /// If true, stderr is enabled when `programs` are run, which is the default. |
| 12 | pub stderrrust-analyzer cargo gix-credentials 0.38.0 helper/Cascade#stderr.: bool, |
| 13 | /// If true, http(s) urls will take their path portion into account when obtaining credentials. Default is false. |
| 14 | /// Other protocols like ssh will always use the path portion. |
| 15 | pub use_http_pathrust-analyzer cargo gix-credentials 0.38.0 helper/Cascade#use_http_path.: bool, |
| 16 | /// If true, default false, when getting credentials, we will set a bogus password to only obtain the user name. |
| 17 | /// Storage and cancellation work the same, but without a password set. |
| 18 | pub query_user_onlyrust-analyzer cargo gix-credentials 0.38.0 helper/Cascade#query_user_only.: bool, |
| 19 | } |
| 20 | |
| 21 | /// The outcome of the credentials helper [invocation][crate::helper::invoke()]. |
| 22 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:)] |
| 23 | pub struct Outcomerust-analyzer cargo gix-credentials 0.38.0 helper/Outcome# { |
| 24 | /// The username to use in the identity, if set. |
| 25 | pub usernamerust-analyzer cargo gix-credentials 0.38.0 helper/Outcome#username.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, |
| 26 | /// The password to use in the identity, if set. |
| 27 | pub passwordrust-analyzer cargo gix-credentials 0.38.0 helper/Outcome#password.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, |
| 28 | /// An OAuth refresh token that may accompany a password. It is to be treated confidentially, just like the password. |
| 29 | pub oauth_refresh_tokenrust-analyzer cargo gix-credentials 0.38.0 helper/Outcome#oauth_refresh_token.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, |
| 30 | /// If set, the helper asked to stop the entire process, whether the identity is complete or not. |
| 31 | pub quitrust-analyzer cargo gix-credentials 0.38.0 helper/Outcome#quit.: bool, |
| 32 | /// A handle to the action to perform next in another call to [`helper::invoke()`][crate::helper::invoke()]. |
| 33 | pub nextrust-analyzer cargo gix-credentials 0.38.0 helper/Outcome#next.: NextActionrust-analyzer cargo gix-credentials 0.38.0 helper/NextAction#, |
| 34 | } |
| 35 | |
| 36 | impl Outcomerust-analyzer cargo gix-credentials 0.38.0 helper/Outcome# { |
| 37 | /// Try to fetch username _and_ password to form an identity. This will fail if one of them is not set. |
| 38 | /// |
| 39 | /// This does nothing if only one of the fields is set, or consume both. |
| 40 | pub fn consume_identityrust-analyzer cargo gix-credentials 0.38.0 helper/impl#[Outcome]consume_identity().(&mut self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<gix_secrust-analyzer cargo gix-sec 0.14.0 crate/::identityrust-analyzer cargo gix-sec 0.14.0 identity/::Accountrust-analyzer cargo gix-sec 0.14.0 identity/Account#> { |
| 41 | if self.usernamerust-analyzer cargo gix-credentials 0.38.0 helper/Outcome#username..is_nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]is_none().() || self.passwordrust-analyzer cargo gix-credentials 0.38.0 helper/Outcome#password..is_nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]is_none().() { |
| 42 | return Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#; |
| 43 | } |
| 44 | self.usernamerust-analyzer cargo gix-credentials 0.38.0 helper/Outcome#username. |
| 45 | .takerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]take().() |
| 46 | .ziprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]zip().(self.passwordrust-analyzer cargo gix-credentials 0.38.0 helper/Outcome#password..takerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]take().()) |
| 47 | .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(|(username, password)| gix_secrust-analyzer cargo gix-sec 0.14.0 crate/::identityrust-analyzer cargo gix-sec 0.14.0 identity/::Accountrust-analyzer cargo gix-sec 0.14.0 identity/Account# { |
| 48 | usernamerust-analyzer cargo gix-sec 0.14.0 identity/Account#username., |
| 49 | passwordrust-analyzer cargo gix-sec 0.14.0 identity/Account#password., |
| 50 | oauth_refresh_tokenrust-analyzer cargo gix-sec 0.14.0 identity/Account#oauth_refresh_token.: self.oauth_refresh_tokenrust-analyzer cargo gix-credentials 0.38.0 helper/Outcome#oauth_refresh_token..takerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]take().(), |
| 51 | }) |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | /// The Result type used in [`invoke()`][crate::helper::invoke()]. |
| 56 | pub type Resultrust-analyzer cargo gix-credentials 0.38.0 helper/Result# = stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Outcomerust-analyzer cargo gix-credentials 0.38.0 helper/Outcome#>, Errorrust-analyzer cargo gix-credentials 0.38.0 helper/Error#>; |
| 57 | |
| 58 | /// The error used in the [credentials helper invocation][crate::helper::invoke()]. |
| 59 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, thiserrorrust-analyzer cargo thiserror 2.0.18 crate/::Errorrust-analyzer cargo thiserror-impl 2.0.18 Error:)] |
| 60 | #[allow(missing_docs)] |
| 61 | pub enum Errorrust-analyzer cargo gix-credentials 0.38.0 helper/Error# { |
| 62 | #[errorrust-analyzer cargo thiserror-impl 2.0.18 error:(transparent)] |
| 63 | ContextDecoderust-analyzer cargo gix-credentials 0.38.0 helper/Error#ContextDecode#(#[from] protocolrust-analyzer cargo gix-credentials 0.38.0 protocol/::contextrust-analyzer cargo gix-credentials 0.38.0 protocol/context/::decoderust-analyzer cargo gix-credentials 0.38.0 protocol/context/serde/decode/::Errorrust-analyzer cargo gix-credentials 0.38.0 protocol/context/serde/decode/Error#), |
| 64 | #[errorrust-analyzer cargo thiserror-impl 2.0.18 error:("An IO error occurred while communicating to the credentials helper")] |
| 65 | Iorust-analyzer cargo gix-credentials 0.38.0 helper/Error#Io#(#[from] stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#), |
| 66 | #[errorrust-analyzer cargo thiserror-impl 2.0.18 error:(transparent)] |
| 67 | CredentialsHelperFailedrust-analyzer cargo gix-credentials 0.38.0 helper/Error#CredentialsHelperFailed# { sourcerust-analyzer cargo gix-credentials 0.38.0 helper/Error#CredentialsHelperFailed#source.: stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error# }, |
| 68 | } |
| 69 | |
| 70 | /// The action to perform by the credentials [helper][`crate::helper::invoke()`]. |
| 71 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)] |
| 72 | pub enum Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action# { |
| 73 | /// Provide credentials using the given repository context, which must include the repository url. |
| 74 | Getrust-analyzer cargo gix-credentials 0.38.0 helper/Action#Get#(Contextrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#), |
| 75 | /// Approve the credentials as identified by the previous input provided as `BString`, containing information from [`Context`]. |
| 76 | Storerust-analyzer cargo gix-credentials 0.38.0 helper/Action#Store#(BStringrust-analyzer cargo bstr 1.12.1 bstring/BString#), |
| 77 | /// Reject the credentials as identified by the previous input provided as `BString`. containing information from [`Context`]. |
| 78 | Eraserust-analyzer cargo gix-credentials 0.38.0 helper/Action#Erase#(BStringrust-analyzer cargo bstr 1.12.1 bstring/BString#), |
| 79 | } |
| 80 | |
| 81 | /// Initialization |
| 82 | impl Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action# { |
| 83 | /// Create a `Get` action with context containing the given URL. |
| 84 | /// Note that this creates an `Action` suitable for the credential helper cascade only. |
| 85 | pub fn get_for_urlrust-analyzer cargo gix-credentials 0.38.0 helper/impl#[Action]get_for_url().(url: impl Intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/Into#<BStringrust-analyzer cargo bstr 1.12.1 bstring/BString#>) -> Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action# { |
| 86 | Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action#::Getrust-analyzer cargo gix-credentials 0.38.0 helper/Action#Get#(Contextrust-analyzer cargo gix-credentials 0.38.0 protocol/Context# { |
| 87 | 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#(url.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/Into#into().()), |
| 88 | ..Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default#::defaultrust-analyzer cargo gix-credentials 0.38.0 protocol/impl#[Context][Default]default().() |
| 89 | }) |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | /// Access |
| 94 | impl Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action# { |
| 95 | /// Return the payload of store or erase actions. |
| 96 | pub fn payloadrust-analyzer cargo gix-credentials 0.38.0 helper/impl#[Action]payload().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&BStrrust-analyzer cargo bstr 1.12.1 bstr/BStr#> { |
| 97 | use bstrrust-analyzer cargo bstr 1.12.1 crate/::ByteSlicerust-analyzer cargo bstr 1.12.1 ext_slice/ByteSlice#; |
| 98 | match self { |
| 99 | Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action#::Getrust-analyzer cargo gix-credentials 0.38.0 helper/Action#Get#(_) => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 100 | Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action#::Storerust-analyzer cargo gix-credentials 0.38.0 helper/Action#Store#(p) | Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action#::Eraserust-analyzer cargo gix-credentials 0.38.0 helper/Action#Erase#(p) => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(p.as_bstrrust-analyzer cargo bstr 1.12.1 ext_slice/ByteSlice#as_bstr().()), |
| 101 | } |
| 102 | } |
| 103 | /// Return the context of a get operation, or `None`. |
| 104 | /// |
| 105 | /// The opposite of [`payload`][Action::payload()]. |
| 106 | pub fn contextrust-analyzer cargo gix-credentials 0.38.0 helper/impl#[Action]context().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&Contextrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#> { |
| 107 | match self { |
| 108 | Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action#::Getrust-analyzer cargo gix-credentials 0.38.0 helper/Action#Get#(ctx) => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ctx), |
| 109 | Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action#::Eraserust-analyzer cargo gix-credentials 0.38.0 helper/Action#Erase#(_) | Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action#::Storerust-analyzer cargo gix-credentials 0.38.0 helper/Action#Store#(_) => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | /// Return the mutable context of a get operation, or `None`. |
| 114 | pub fn context_mutrust-analyzer cargo gix-credentials 0.38.0 helper/impl#[Action]context_mut().(&mut self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&mut Contextrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#> { |
| 115 | match self { |
| 116 | Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action#::Getrust-analyzer cargo gix-credentials 0.38.0 helper/Action#Get#(ctx) => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ctx), |
| 117 | Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action#::Eraserust-analyzer cargo gix-credentials 0.38.0 helper/Action#Erase#(_) | Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action#::Storerust-analyzer cargo gix-credentials 0.38.0 helper/Action#Store#(_) => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | /// Returns true if this action expects output from the helper. |
| 122 | pub fn expects_outputrust-analyzer cargo gix-credentials 0.38.0 helper/impl#[Action]expects_output().(&self) -> bool { |
| 123 | matchesrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/matches!!(self, Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action#::Getrust-analyzer cargo gix-credentials 0.38.0 helper/Action#Get#(_)) |
| 124 | } |
| 125 | |
| 126 | /// The name of the argument to describe this action. If `is_external` is true, the target program is |
| 127 | /// a custom credentials helper, not a built-in one. |
| 128 | pub fn as_argrust-analyzer cargo gix-credentials 0.38.0 helper/impl#[Action]as_arg().(&self, is_external: bool) -> &str { |
| 129 | match self { |
| 130 | Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action#::Getrust-analyzer cargo gix-credentials 0.38.0 helper/Action#Get#(_) if is_external => "get", |
| 131 | Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action#::Getrust-analyzer cargo gix-credentials 0.38.0 helper/Action#Get#(_) => "fill", |
| 132 | Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action#::Storerust-analyzer cargo gix-credentials 0.38.0 helper/Action#Store#(_) if is_external => "store", |
| 133 | Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action#::Storerust-analyzer cargo gix-credentials 0.38.0 helper/Action#Store#(_) => "approve", |
| 134 | Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action#::Eraserust-analyzer cargo gix-credentials 0.38.0 helper/Action#Erase#(_) if is_external => "erase", |
| 135 | Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action#::Eraserust-analyzer cargo gix-credentials 0.38.0 helper/Action#Erase#(_) => "reject", |
| 136 | } |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | /// A handle to [store](NextAction::store()) or [erase](NextAction::erase()) the outcome of the initial action. |
| 141 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:)] |
| 142 | pub struct NextActionrust-analyzer cargo gix-credentials 0.38.0 helper/NextAction# { |
| 143 | previous_outputrust-analyzer cargo gix-credentials 0.38.0 helper/NextAction#previous_output.: BStringrust-analyzer cargo bstr 1.12.1 bstring/BString#, |
| 144 | } |
| 145 | |
| 146 | impl TryFromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#<&NextActionrust-analyzer cargo gix-credentials 0.38.0 helper/NextAction#> for Contextrust-analyzer cargo gix-credentials 0.38.0 protocol/Context# { |
| 147 | type Errorrust-analyzer cargo gix-credentials 0.38.0 helper/impl#[Context][`TryFrom<&NextAction>`]Error# = protocolrust-analyzer cargo gix-credentials 0.38.0 protocol/::contextrust-analyzer cargo gix-credentials 0.38.0 protocol/context/::decoderust-analyzer cargo gix-credentials 0.38.0 protocol/context/serde/decode/::Errorrust-analyzer cargo gix-credentials 0.38.0 protocol/context/serde/decode/Error#; |
| 148 | |
| 149 | fn try_fromrust-analyzer cargo gix-credentials 0.38.0 helper/impl#[Context][`TryFrom<&NextAction>`]try_from().(value: &NextActionrust-analyzer cargo gix-credentials 0.38.0 helper/NextAction#) -> stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Selfrust-analyzer cargo gix-credentials 0.38.0 helper/impl#[Context][`TryFrom<&NextAction>`], Selfrust-analyzer cargo gix-credentials 0.38.0 helper/impl#[Context][`TryFrom<&NextAction>`]::Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#Error#> { |
| 150 | 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().(value.previous_outputrust-analyzer cargo gix-credentials 0.38.0 helper/NextAction#previous_output..as_refrust-analyzer cargo bstr 1.12.1 impls/bstring/impl#[BString][`AsRef<[u8]>`]as_ref().()) |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<Contextrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#> for NextActionrust-analyzer cargo gix-credentials 0.38.0 helper/NextAction# { |
| 155 | fn fromrust-analyzer cargo gix-credentials 0.38.0 helper/impl#[NextAction][`From<Context>`]from().(ctx: Contextrust-analyzer cargo gix-credentials 0.38.0 protocol/Context#) -> Selfrust-analyzer cargo gix-credentials 0.38.0 helper/impl#[NextAction][`From<Context>`] { |
| 156 | let mut buf = Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#::<u8>::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T>`]new().(); |
| 157 | ctx.write_torust-analyzer cargo gix-credentials 0.38.0 protocol/context/serde/write/impl#[Context]write_to().(&mut buf).expectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]expect().("cannot fail"); |
| 158 | NextActionrust-analyzer cargo gix-credentials 0.38.0 helper/NextAction# { |
| 159 | previous_outputrust-analyzer cargo gix-credentials 0.38.0 helper/NextAction#previous_output.: buf.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 160 | } |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | impl NextActionrust-analyzer cargo gix-credentials 0.38.0 helper/NextAction# { |
| 165 | /// Approve the result of the previous [Action] and store for lookup. |
| 166 | pub fn storerust-analyzer cargo gix-credentials 0.38.0 helper/impl#[NextAction]store().(self) -> Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action# { |
| 167 | Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action#::Storerust-analyzer cargo gix-credentials 0.38.0 helper/Action#Store#(self.previous_outputrust-analyzer cargo gix-credentials 0.38.0 helper/NextAction#previous_output.) |
| 168 | } |
| 169 | /// Reject the result of the previous [Action] and erase it as to not be returned when being looked up. |
| 170 | pub fn eraserust-analyzer cargo gix-credentials 0.38.0 helper/impl#[NextAction]erase().(self) -> Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action# { |
| 171 | Actionrust-analyzer cargo gix-credentials 0.38.0 helper/Action#::Eraserust-analyzer cargo gix-credentials 0.38.0 helper/Action#Erase#(self.previous_outputrust-analyzer cargo gix-credentials 0.38.0 helper/NextAction#previous_output.) |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | mod cascaderust-analyzer cargo gix-credentials 0.38.0 helper/cascade/; |
| 176 | pub(craterust-analyzer cargo gix-credentials 0.38.0 crate/) mod invokerust-analyzer cargo gix-credentials 0.38.0 helper/invoke/; |
| 177 | |
| 178 | pub use invokerust-analyzer cargo gix-credentials 0.38.0 helper/invoke/::invokerust-analyzer cargo gix-credentials 0.38.0 helper/invoke/invoke().; |