pub struct PatchPreviewResponse {
pub would_succeed: bool,
pub validation_error: Option<String>,
pub type_errors: Vec<String>,
pub impact: Impact,
}Expand description
Response from Client::preview_patch.
Fields§
§would_succeed: booltrue if the patch would succeed if applied.
validation_error: Option<String>Structural validation error, if any.
type_errors: Vec<String>Type errors that would arise after applying the patch.
impact: ImpactAnalysis of which functions/types would be affected.
Trait Implementations§
Source§impl Clone for PatchPreviewResponse
impl Clone for PatchPreviewResponse
Source§fn clone(&self) -> PatchPreviewResponse
fn clone(&self) -> PatchPreviewResponse
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 PatchPreviewResponse
impl Debug for PatchPreviewResponse
Source§impl<'de> Deserialize<'de> for PatchPreviewResponse
impl<'de> Deserialize<'de> for PatchPreviewResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PatchPreviewResponse
impl RefUnwindSafe for PatchPreviewResponse
impl Send for PatchPreviewResponse
impl Sync for PatchPreviewResponse
impl Unpin for PatchPreviewResponse
impl UnsafeUnpin for PatchPreviewResponse
impl UnwindSafe for PatchPreviewResponse
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