pub struct PoolRoute {
pub pool_id: String,
pub tier: PoolTier,
pub weight: f32,
pub match_keywords: Vec<String>,
pub keyword_score: f32,
pub images: Option<bool>,
}Fields§
§pool_id: StringPool identifier, corresponds to ugate’s pool_id
tier: PoolTierPool tier (affects scoring)
weight: f32Priority weight when matching (0.0-1.0)
match_keywords: Vec<String>Keywords that increase this pool’s score when matched
keyword_score: f32Score bonus per matched keyword
images: Option<bool>Whether this pool is suitable for images (None = no restriction)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PoolRoute
impl<'de> Deserialize<'de> for PoolRoute
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 PoolRoute
impl RefUnwindSafe for PoolRoute
impl Send for PoolRoute
impl Sync for PoolRoute
impl Unpin for PoolRoute
impl UnsafeUnpin for PoolRoute
impl UnwindSafe for PoolRoute
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