pub trait EntityAttributes: Send + Sync {
// Required method
fn get_attribute(&self, field: &str) -> Option<Value>;
}Expand description
实体属性提取 trait(用户为实体实现此 trait 以支持 find_by)
Required Methods§
Sourcefn get_attribute(&self, field: &str) -> Option<Value>
fn get_attribute(&self, field: &str) -> Option<Value>
按字段名获取属性值
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".