pub struct LspErrorPayload {
pub code: String,
pub message: String,
pub recoverable: bool,
pub user_action: Option<String>,
}Expand description
LSP JSON error payload for custom strixonomy/* methods (not strixonomy_core::StrixonomyError).
Fields§
§code: String§message: String§recoverable: bool§user_action: Option<String>Implementations§
Source§impl LspErrorPayload
impl LspErrorPayload
pub fn not_indexed() -> Self
pub fn not_found(iri: &str) -> Self
pub fn index_failed(message: String) -> Self
pub fn invalid_params(message: String) -> Self
pub fn graph_failed(message: String) -> Self
pub fn robot_failed(message: String) -> Self
pub fn patch_invalid(message: String) -> Self
pub fn unsupported_format(message: String) -> Self
pub fn query_failed(message: String) -> Self
pub fn manchester_invalid(message: String) -> Self
pub fn applied_not_indexed(message: String) -> Self
pub fn reasoner_failed(message: String) -> Self
pub fn explanation_failed(message: String) -> Self
pub fn refactor_failed(message: String) -> Self
Trait Implementations§
Source§impl Debug for LspErrorPayload
impl Debug for LspErrorPayload
Auto Trait Implementations§
impl Freeze for LspErrorPayload
impl RefUnwindSafe for LspErrorPayload
impl Send for LspErrorPayload
impl Sync for LspErrorPayload
impl Unpin for LspErrorPayload
impl UnsafeUnpin for LspErrorPayload
impl UnwindSafe for LspErrorPayload
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