#[repr(i32)]
pub enum UrlFieldError {
Show 55 variants Unspecified = 0, Unknown = 1, InvalidTrackingUrlTemplate = 2, InvalidTagInTrackingUrlTemplate = 3, MissingTrackingUrlTemplateTag = 4, MissingProtocolInTrackingUrlTemplate = 5, InvalidProtocolInTrackingUrlTemplate = 6, MalformedTrackingUrlTemplate = 7, MissingHostInTrackingUrlTemplate = 8, InvalidTldInTrackingUrlTemplate = 9, RedundantNestedTrackingUrlTemplateTag = 10, InvalidFinalUrl = 11, InvalidTagInFinalUrl = 12, RedundantNestedFinalUrlTag = 13, MissingProtocolInFinalUrl = 14, InvalidProtocolInFinalUrl = 15, MalformedFinalUrl = 16, MissingHostInFinalUrl = 17, InvalidTldInFinalUrl = 18, InvalidFinalMobileUrl = 19, InvalidTagInFinalMobileUrl = 20, RedundantNestedFinalMobileUrlTag = 21, MissingProtocolInFinalMobileUrl = 22, InvalidProtocolInFinalMobileUrl = 23, MalformedFinalMobileUrl = 24, MissingHostInFinalMobileUrl = 25, InvalidTldInFinalMobileUrl = 26, InvalidFinalAppUrl = 27, InvalidTagInFinalAppUrl = 28, RedundantNestedFinalAppUrlTag = 29, MultipleAppUrlsForOstype = 30, InvalidOstype = 31, InvalidProtocolForAppUrl = 32, InvalidPackageIdForAppUrl = 33, UrlCustomParametersCountExceedsLimit = 34, InvalidCharactersInUrlCustomParameterKey = 39, InvalidCharactersInUrlCustomParameterValue = 40, InvalidTagInUrlCustomParameterValue = 41, RedundantNestedUrlCustomParameterTag = 42, MissingProtocol = 43, InvalidProtocol = 52, InvalidUrl = 44, DestinationUrlDeprecated = 45, InvalidTagInUrl = 46, MissingUrlTag = 47, DuplicateUrlId = 48, InvalidUrlId = 49, FinalUrlSuffixMalformed = 50, InvalidTagInFinalUrlSuffix = 51, InvalidTopLevelDomain = 53, MalformedTopLevelDomain = 54, MalformedUrl = 55, MissingHost = 56, NullCustomParameterValue = 57, ValueTrackParameterNotSupported = 58,
}
Expand description

Enum describing possible url field errors.

Variants§

§

Unspecified = 0

Enum unspecified.

§

Unknown = 1

The received error code is not known in this version.

§

InvalidTrackingUrlTemplate = 2

The tracking url template is invalid.

§

InvalidTagInTrackingUrlTemplate = 3

The tracking url template contains invalid tag.

§

MissingTrackingUrlTemplateTag = 4

The tracking url template must contain at least one tag (for example, {lpurl}), This applies only to tracking url template associated with website ads or product ads.

§

MissingProtocolInTrackingUrlTemplate = 5

The tracking url template must start with a valid protocol (or lpurl tag).

§

InvalidProtocolInTrackingUrlTemplate = 6

The tracking url template starts with an invalid protocol.

§

MalformedTrackingUrlTemplate = 7

The tracking url template contains illegal characters.

§

MissingHostInTrackingUrlTemplate = 8

The tracking url template must contain a host name (or lpurl tag).

§

InvalidTldInTrackingUrlTemplate = 9

The tracking url template has an invalid or missing top level domain extension.

§

RedundantNestedTrackingUrlTemplateTag = 10

The tracking url template contains nested occurrences of the same conditional tag (for example, {ifmobile:{ifmobile:x}}).

§

InvalidFinalUrl = 11

The final url is invalid.

§

InvalidTagInFinalUrl = 12

The final url contains invalid tag.

§

RedundantNestedFinalUrlTag = 13

The final url contains nested occurrences of the same conditional tag (for example, {ifmobile:{ifmobile:x}}).

§

MissingProtocolInFinalUrl = 14

The final url must start with a valid protocol.

§

InvalidProtocolInFinalUrl = 15

The final url starts with an invalid protocol.

§

MalformedFinalUrl = 16

The final url contains illegal characters.

§

MissingHostInFinalUrl = 17

The final url must contain a host name.

§

InvalidTldInFinalUrl = 18

The tracking url template has an invalid or missing top level domain extension.

§

InvalidFinalMobileUrl = 19

The final mobile url is invalid.

§

InvalidTagInFinalMobileUrl = 20

The final mobile url contains invalid tag.

§

RedundantNestedFinalMobileUrlTag = 21

The final mobile url contains nested occurrences of the same conditional tag (for example, {ifmobile:{ifmobile:x}}).

§

MissingProtocolInFinalMobileUrl = 22

The final mobile url must start with a valid protocol.

§

InvalidProtocolInFinalMobileUrl = 23

The final mobile url starts with an invalid protocol.

§

MalformedFinalMobileUrl = 24

The final mobile url contains illegal characters.

§

MissingHostInFinalMobileUrl = 25

The final mobile url must contain a host name.

§

InvalidTldInFinalMobileUrl = 26

The tracking url template has an invalid or missing top level domain extension.

§

InvalidFinalAppUrl = 27

The final app url is invalid.

§

InvalidTagInFinalAppUrl = 28

The final app url contains invalid tag.

§

RedundantNestedFinalAppUrlTag = 29

The final app url contains nested occurrences of the same conditional tag (for example, {ifmobile:{ifmobile:x}}).

§

MultipleAppUrlsForOstype = 30

More than one app url found for the same OS type.

§

InvalidOstype = 31

The OS type given for an app url is not valid.

§

InvalidProtocolForAppUrl = 32

The protocol given for an app url is not valid. (For example, “android-app://”)

§

InvalidPackageIdForAppUrl = 33

The package id (app id) given for an app url is not valid.

§

UrlCustomParametersCountExceedsLimit = 34

The number of url custom parameters for an resource exceeds the maximum limit allowed.

§

InvalidCharactersInUrlCustomParameterKey = 39

An invalid character appears in the parameter key.

§

InvalidCharactersInUrlCustomParameterValue = 40

An invalid character appears in the parameter value.

§

InvalidTagInUrlCustomParameterValue = 41

The url custom parameter value fails url tag validation.

§

RedundantNestedUrlCustomParameterTag = 42

The custom parameter contains nested occurrences of the same conditional tag (for example, {ifmobile:{ifmobile:x}}).

§

MissingProtocol = 43

The protocol (http:// or https://) is missing.

§

InvalidProtocol = 52

Unsupported protocol in URL. Only http and https are supported.

§

InvalidUrl = 44

The url is invalid.

§

DestinationUrlDeprecated = 45

Destination Url is deprecated.

§

InvalidTagInUrl = 46

The url contains invalid tag.

§

MissingUrlTag = 47

The url must contain at least one tag (for example, {lpurl}).

§

DuplicateUrlId = 48

Duplicate url id.

§

InvalidUrlId = 49

Invalid url id.

§

FinalUrlSuffixMalformed = 50

The final url suffix cannot begin with ‘?’ or ‘&’ characters and must be a valid query string.

§

InvalidTagInFinalUrlSuffix = 51

The final url suffix cannot contain {lpurl} related or {ignore} tags.

§

InvalidTopLevelDomain = 53

The top level domain is invalid, for example, not a public top level domain listed in publicsuffix.org.

§

MalformedTopLevelDomain = 54

Malformed top level domain in URL.

§

MalformedUrl = 55

Malformed URL.

§

MissingHost = 56

No host found in URL.

§

NullCustomParameterValue = 57

Custom parameter value cannot be null.

§

ValueTrackParameterNotSupported = 58

Track parameter is not supported.

Implementations§

source§

impl UrlFieldError

source

pub fn is_valid(value: i32) -> bool

Returns true if value is a variant of UrlFieldError.

source

pub fn from_i32(value: i32) -> Option<UrlFieldError>

👎Deprecated: Use the TryFrom<i32> implementation instead

Converts an i32 to a UrlFieldError, or None if value is not a valid variant.

source§

impl UrlFieldError

source

pub fn as_str_name(&self) -> &'static str

String value of the enum field names used in the ProtoBuf definition.

The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.

source

pub fn from_str_name(value: &str) -> Option<Self>

Creates an enum from field names used in the ProtoBuf definition.

Trait Implementations§

source§

impl Clone for UrlFieldError

source§

fn clone(&self) -> UrlFieldError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for UrlFieldError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for UrlFieldError

source§

fn default() -> UrlFieldError

Returns the “default value” for a type. Read more
source§

impl From<UrlFieldError> for i32

source§

fn from(value: UrlFieldError) -> i32

Converts to this type from the input type.
source§

impl Hash for UrlFieldError

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for UrlFieldError

source§

fn cmp(&self, other: &UrlFieldError) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for UrlFieldError

source§

fn eq(&self, other: &UrlFieldError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for UrlFieldError

source§

fn partial_cmp(&self, other: &UrlFieldError) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TryFrom<i32> for UrlFieldError

§

type Error = DecodeError

The type returned in the event of a conversion error.
source§

fn try_from(value: i32) -> Result<UrlFieldError, DecodeError>

Performs the conversion.
source§

impl Copy for UrlFieldError

source§

impl Eq for UrlFieldError

source§

impl StructuralPartialEq for UrlFieldError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more