Struct ResourceTransformRule
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
Query parameters to add to the URLs of requests that match a pattern.
public readonly record struct ResourceTransformRule : IEquatable<ResourceTransformRule>
- Implements
- Inherited Members
Remarks
The library adds the parameters, in order, at the end of the URL's query and before any fragment. It keeps the parameters that the URL already has, even one with the same name.
See mln_resource_transform_rule in the C API reference.
Constructors
ResourceTransformRule()
public ResourceTransformRule()
ResourceTransformRule(ResourceKindFlag, UrlMatchFlag, string, ImmutableArray<UrlQueryParameter>)
public ResourceTransformRule(ResourceKindFlag Kinds, UrlMatchFlag Flags, string Url, ImmutableArray<UrlQueryParameter> Parameters)
Parameters
KindsResourceKindFlagFlagsUrlMatchFlagUrlstringParametersImmutableArray<UrlQueryParameter>
Properties
Flags
public UrlMatchFlag Flags { get; init; }
Property Value
Kinds
The kinds of resource that the rule covers. Zero covers every kind.
public ResourceKindFlag Kinds { get; init; }
Property Value
Parameters
public ImmutableArray<UrlQueryParameter> Parameters { get; init; }
Property Value
Url
public string Url { get; init; }