Module types

Module types 

Source
Expand description

Foundational types containing the bulk of a Cleaner’s logic.

Re-exports§

pub use url_part::*;
pub use host_part::*;
pub use cleaner::*;
pub use conditions::*;
pub use actions::*;
pub use string_location::*;
pub use string_modification::*;
pub use string_source::*;
pub use string_matcher::*;
pub use char_matcher::*;
pub use job::*;
pub use named_partitioning::*;
pub use set::*;
pub use map::*;
pub use refs::*;
pub use unthreader::*;

Modules§

actions
Logic for how a TaskState should be modified.
char_matcher
Rules for matching a char.
cleaner
The configuration for how a URL should be cleaned.
conditions
Logic for when a TaskState should be modified.
host_details
Details for hosts not stored/exposed by url.
host_part
A common API for getting and setting various parts of BetterHosts.
job
Framework for bulk processing.
map
HashMap<Option<String>, T> you can index with Option<&T>.
named_partitioning
Effectively a way to query multiple disjoint HashSets at once.
refs
Unified APIs for the various places flags and vars exist.
set
HashSet<Option<T>> but you can check inclusivity with Option<&T>.
string_location
Rules for looking for a string in another string.
string_matcher
Rules for matching a string.
string_modification
Rules for modifying strings.
string_source
Dynamically get strings from either literals or various parts of a TaskStateView.
unthreader
Allows making requests, cache reads, etc. effectively single threaded to hide thread count.
url_part
A common API for getting and setting various parts of BetterUrls.

Structs§

BetterHost
A URL host and its details.
BetterParseOptions
url::ParseOptions with public fields and std::fmt::Debug.
BetterUrl
A wrapper around a Url with extra metadata.
DomainDetails
The details of a domain host.
HostIsNotDomain
The error returned when trying to convert a non-HostDetails::Domain into a DomainDetails.
HostIsNotIpv4
The error returned when trying to convert a non-HostDetails::Ipv4 into a Ipv4Details.
HostIsNotIpv6
The error returned when trying to convert a non-HostDetails::Ipv6 into a Ipv6Details.
Ipv4Details
Details of an IPv4 host.
Ipv6Details
Details of an IPv6 host.
SetHostError
The error BetterUrl::set_host returns when it fails.
SetIpHostError
The error BetterUrl::set_ip_host returns when it fails.
SetPasswordError
The error BetterUrl::set_password returns when it fails.
SetPortError
The error BetterUrl::set_port returns when it fails.
SetSchemeError
The error BetterUrl::set_scheme returns when it fails.
SetUsernameError
The error BetterUrl::set_username returns when it fails.

Enums§

GetDomainDetailsError
The enum of errors DomainDetails::parse can return.
HostDetails
The details of a BetterUrl’s host.
InsertDomainSegmentError
The enum of errors BetterUrl::insert_domain_segment can return.
InsertDomainSuffixSegmentError
The enum of errors BetterUrl::insert_domain_suffix_segment can return.
InsertPathSegmentError
The enum of errors BetterUrl::insert_path_segment can return.
InsertSubdomainSegmentError
The enum of errors BetterUrl::insert_subdomain_segment can return.
KeepFirstNPathSegmentsError
The enum of errors BetterUrl::keep_first_n_path_segments can return.
KeepLastNPathSegmentsError
The enum of errors BetterUrl::keep_last_n_path_segments can return.
RemoveFirstNPathSegmentsError
The enum of errors BetterUrl::remove_first_n_path_segments can return.
RemoveLastNPathSegmentsError
The enum of errors BetterUrl::remove_last_n_path_segments can return.
RenameQueryParamError
The enum of errors BetterUrl::rename_query_param can return.
SetDomainError
The enum of errors BetterUrl::set_domain can return.
SetDomainMiddleError
The enum of errors BetterUrl::set_domain_middle can return.
SetDomainSegmentError
The enum of errors BetterUrl::set_domain_segment can return.
SetDomainSuffixError
The enum of errors BetterUrl::set_domain_suffix can return.
SetDomainSuffixSegmentError
The enum of errors BetterUrl::set_domain_suffix_segment can return.
SetFirstNPathSegmentsError
The enum of errors BetterUrl::set_first_n_path_segments can return.
SetFqdnError
The enum of errors BetterUrl::set_fqdn can return.
SetLastNPathSegmentsError
The enum of errors BetterUrl::set_last_n_path_segments can return.
SetNotDomainSuffixError
The enum of errors BetterUrl::set_not_domain_suffix can return.
SetPathSegmentError
The enum of errors BetterUrl::set_path_segment can return.
SetPathSegmentsAfterFirstNError
The enum of errors BetterUrl::set_path_segments_after_first_n can return.
SetPathSegmentsBeforeLastNError
The enum of errors BetterUrl::set_path_segments_before_last_n can return.
SetPathSegmentsError
The enum of errors BetterUrl::set_path_segments can return.
SetPathSegmentsStrError
The enum of errors BetterUrl::set_path_segments_str can return.
SetQueryParamError
The enum of errors BetterUrl::set_query_param can return.
SetRegDomainError
The enum of errors BetterUrl::set_reg_domain can return.
SetSubdomainError
The enum of errors BetterUrl::set_subdomain can return.
SetSubdomainSegmentError
The enum of errors BetterUrl::set_subdomain_segment can return.