pub struct Profile {
pub name: String,
pub search_prefix: Option<String>,
pub parse_regex: RegexWrapper,
pub relocate: Option<String>,
}
Fields§
§name: String
§search_prefix: Option<String>
initial parts of search phrase, of which is followed by space and series name
parse_regex: RegexWrapper
torrent name parsing regex
relocate: Option<String>
if set, is a default path for series relocation. I.e. relocate
/
Implementations§
Source§impl Profile
impl Profile
pub fn parse_name<'s, 't>(&'s self, name: &'t str) -> Option<StandardEpisode>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Profile
impl<'de> Deserialize<'de> for Profile
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 Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
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