Struct google_digitalassetlinks1::WebAsset [−][src]
Describes a web asset.
This type is not used in any activity, and only used as part of another schema.
Fields
site: Option<String>
Web assets are identified by a URL that contains only the scheme, hostname and port parts. The format is
http[s]://<hostname>[:<port>]
Hostnames must be fully qualified: they must end in a single period
(".
").
Only the schemes "http" and "https" are currently allowed.
Port numbers are given as a decimal number, and they must be omitted if the standard port numbers are used: 80 for http and 443 for https.
We call this limited URL the "site". All URLs that share the same scheme, hostname and port are considered to be a part of the site and thus belong to the web asset.
Example: the asset with the site https://www.google.com
contains all
these URLs:
https://www.google.com/
https://www.google.com:443/
https://www.google.com/foo
https://www.google.com/foo?bar
https://www.google.com/foo#bar
https://user@password:www.google.com/
But it does not contain these URLs:
http://www.google.com/
(wrong scheme)https://google.com/
(hostname does not match)https://www.google.com:444/
(port does not match) REQUIRED
Trait Implementations
impl Default for WebAsset
[src]
impl Default for WebAsset
impl Clone for WebAsset
[src]
impl Clone for WebAsset
fn clone(&self) -> WebAsset
[src]
fn clone(&self) -> WebAsset
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for WebAsset
[src]
impl Debug for WebAsset
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for WebAsset
[src]
impl Part for WebAsset