#[non_exhaustive]pub struct Url {
pub categories: Option<Vec<String>>,
pub category_ids: Option<Vec<i64>>,
pub domain: Option<String>,
pub hostname: Option<String>,
pub path: Option<String>,
pub port: Option<i64>,
pub query_string: Option<String>,
pub resource_type: Option<String>,
pub scheme: Option<String>,
pub subdomain: Option<String>,
pub url_string: Option<String>,
}Expand description
Uniform Resource Locator
The Uniform Resource Locator (URL) object describes the characteristics of a URL.
[] Category: | Name: url
Constraints:
- at_least_one:
[url_string,path]
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.categories: Option<Vec<String>>Website Categorization
The Website categorization names, as defined by category_ids enum values.
optional
category_ids: Option<Vec<i64>>Website Categorization IDs
The Website categorization identifiers.
recommended
domain: Option<String>Domain
The domain portion of the URL. For example: example.com in https://sub.example.com.
optional
hostname: Option<String>Hostname
The URL host as extracted from the URL. For example: www.example.com from www.example.com/download/trouble.
recommended
path: Option<String>Path
The URL path as extracted from the URL. For example: /download/trouble from www.example.com/download/trouble.
recommended
port: Option<i64>Port
The URL port. For example: 80.
recommended
query_string: Option<String>HTTP Query String
The query portion of the URL. For example: the query portion of the URL http://www.example.com/search?q=bad&sort=date is q=bad&sort=date.
recommended
resource_type: Option<String>Resource Type
The context in which a resource was retrieved in a web request.
optional
scheme: Option<String>Scheme
The scheme portion of the URL. For example: http, https, ftp, or sftp.
recommended
subdomain: Option<String>Subdomain
The subdomain portion of the URL. For example: sub in https://sub.example.com or sub2.sub1 in https://sub2.sub1.example.com.
optional
url_string: Option<String>URL String
The URL string. See RFC 1738. For example: http://www.example.com/download/trouble.exe. Note: The URL path should not populate the URL string.
recommended