#[non_exhaustive]pub enum MarketplaceOutcome {
Added,
AlreadyAdded,
Replaced {
marketplace_name: String,
},
Failed {
detail: String,
},
}Expand description
Outcome of registering the marketplace source.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Added
codex plugin marketplace add exited 0.
AlreadyAdded
It failed, saying this source is already registered.
Replaced
A marketplace of the same name pointed at a different directory (the state of any machine that registered the plugin from a source checkout). It was removed and re-added from the caller’s root.
Replacing is safe in Codex’s model: removing a marketplace does not
uninstall the plugins installed from it, so the install survives and
the following plugin add re-copies it from the new root.
Failed
The step failed for a real reason.
Implementations§
Trait Implementations§
Source§impl Clone for MarketplaceOutcome
impl Clone for MarketplaceOutcome
Source§fn clone(&self) -> MarketplaceOutcome
fn clone(&self) -> MarketplaceOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MarketplaceOutcome
impl Debug for MarketplaceOutcome
impl Eq for MarketplaceOutcome
Source§impl PartialEq for MarketplaceOutcome
impl PartialEq for MarketplaceOutcome
impl StructuralPartialEq for MarketplaceOutcome
Auto Trait Implementations§
impl Freeze for MarketplaceOutcome
impl RefUnwindSafe for MarketplaceOutcome
impl Send for MarketplaceOutcome
impl Sync for MarketplaceOutcome
impl Unpin for MarketplaceOutcome
impl UnsafeUnpin for MarketplaceOutcome
impl UnwindSafe for MarketplaceOutcome
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<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
Compare self to
key and return true if they are equal.