pub struct TargetPool {
pub path: String,
pub labels: Vec<String>,
pub wiki: Option<WikiConfig>,
}Fields§
§path: String§labels: Vec<String>§wiki: Option<WikiConfig>Implementations§
Source§impl TargetPool
impl TargetPool
pub fn iter_queries(&self, default_limit: Option<usize>) -> Vec<Query>
pub fn dest_dir(&self) -> Result<PathBuf>
pub fn random_target( &self, completed_rvuids: &[Rvuid], cachemap: &mut CacheMap, ) -> Result<Target>
pub fn total_targets( &self, completed_rvuids: &[Rvuid], cachemap: &mut CacheMap, ) -> Result<usize>
pub fn all_targets(&self, cachemap: &mut CacheMap) -> Result<Vec<CachedHash>>
Trait Implementations§
Source§impl Debug for TargetPool
impl Debug for TargetPool
Source§impl<'de> Deserialize<'de> for TargetPool
impl<'de> Deserialize<'de> for TargetPool
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 TargetPool
impl RefUnwindSafe for TargetPool
impl Send for TargetPool
impl Sync for TargetPool
impl Unpin for TargetPool
impl UnsafeUnpin for TargetPool
impl UnwindSafe for TargetPool
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