pub struct PathResolution {
pub path: Option<AdapterPath>,
pub requires_user_choice: bool,
pub issues: Vec<PlanIssue>,
}Fields§
§path: Option<AdapterPath>§requires_user_choice: bool§issues: Vec<PlanIssue>Implementations§
Source§impl PathResolution
impl PathResolution
pub fn resolved(path: AdapterPath) -> PathResolution
pub fn unresolved( code: &str, message: String, choices: Vec<String>, ) -> PathResolution
Trait Implementations§
Source§impl Clone for PathResolution
impl Clone for PathResolution
Source§fn clone(&self) -> PathResolution
fn clone(&self) -> PathResolution
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 PathResolution
impl Debug for PathResolution
Source§impl<'de> Deserialize<'de> for PathResolution
impl<'de> Deserialize<'de> for PathResolution
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PathResolution, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PathResolution, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PathResolution
impl PartialEq for PathResolution
Source§fn eq(&self, other: &PathResolution) -> bool
fn eq(&self, other: &PathResolution) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PathResolution
impl Serialize for PathResolution
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PathResolution
Auto Trait Implementations§
impl Freeze for PathResolution
impl RefUnwindSafe for PathResolution
impl Send for PathResolution
impl Sync for PathResolution
impl Unpin for PathResolution
impl UnsafeUnpin for PathResolution
impl UnwindSafe for PathResolution
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