modql 0.4.1

Rust implementation for Model Query Language support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub type Result<T> = core::result::Result<T, Error>;

#[derive(Debug)]
pub enum Error {
	FieldValueNotSeaValue,
	FieldValueIntoTypeError { field_name: String },
}

// region:    --- Error Boilerplate
impl core::fmt::Display for Error {
	fn fmt(&self, fmt: &mut core::fmt::Formatter) -> core::result::Result<(), core::fmt::Error> {
		write!(fmt, "{self:?}")
	}
}

impl std::error::Error for Error {}
// endregion: --- Error Boilerplate