Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 5, 2025
1 parent 04bdb41 commit 0b5fb24
Showing 1 changed file with 35 additions and 24 deletions.
59 changes: 35 additions & 24 deletions platform/rust/include/wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,35 +51,46 @@ inline void TileServerOptions_withBaseURL(TileServerOptions& self, const rust::S
inline void TileServerOptions_withUriSchemeAlias(TileServerOptions& self, const rust::Str value) {
self.withUriSchemeAlias((std::string)value);
}
inline void TileServerOptions_withSourceTemplate(TileServerOptions& self, const rust::Str source_template, const rust::Str domain_name, const int8_t* version_prefix) {
self.withSourceTemplate(
(std::string)source_template,
(std::string)domain_name,
(version_prefix ? std::string((const char*)version_prefix) : std::optional<std::string>{}));
}
inline void TileServerOptions_withStyleTemplate(TileServerOptions& self, const rust::Str style_template, const rust::Str domain_name, const int8_t* version_prefix) {
self.withStyleTemplate(
(std::string)style_template,
(std::string)domain_name,
(version_prefix ? std::string((const char*)version_prefix) : std::optional<std::string>{}));
}
inline void TileServerOptions_withSpritesTemplate(TileServerOptions& self, const rust::Str sprites_template, const rust::Str domain_name, const int8_t* version_prefix) {
inline void TileServerOptions_withSourceTemplate(TileServerOptions& self,
const rust::Str source_template,
const rust::Str domain_name,
const int8_t* version_prefix) {
self.withSourceTemplate((std::string)source_template,
(std::string)domain_name,
(version_prefix ? std::string((const char*)version_prefix) : std::optional<std::string>{}));
}
inline void TileServerOptions_withStyleTemplate(TileServerOptions& self,
const rust::Str style_template,
const rust::Str domain_name,
const int8_t* version_prefix) {
self.withStyleTemplate((std::string)style_template,
(std::string)domain_name,
(version_prefix ? std::string((const char*)version_prefix) : std::optional<std::string>{}));
}
inline void TileServerOptions_withSpritesTemplate(TileServerOptions& self,
const rust::Str sprites_template,
const rust::Str domain_name,
const int8_t* version_prefix) {
self.withSpritesTemplate(
(std::string)sprites_template,
(std::string)domain_name,
(version_prefix ? std::string((const char*)version_prefix) : std::optional<std::string>{}));
}
inline void TileServerOptions_withGlyphsTemplate(TileServerOptions& self, const rust::Str glyphs_template, const rust::Str domain_name, const int8_t* version_prefix) {
self.withGlyphsTemplate(
(std::string)glyphs_template,
(std::string)domain_name,
(version_prefix ? std::string((const char*)version_prefix) : std::optional<std::string>{}));
}
inline void TileServerOptions_withTileTemplate(TileServerOptions& self, const rust::Str tile_template, const rust::Str domain_name, const int8_t* version_prefix) {
self.withTileTemplate(
(std::string)tile_template,
(std::string)domain_name,
(version_prefix ? std::string((const char*)version_prefix) : std::optional<std::string>{}));
inline void TileServerOptions_withGlyphsTemplate(TileServerOptions& self,
const rust::Str glyphs_template,
const rust::Str domain_name,
const int8_t* version_prefix) {
self.withGlyphsTemplate((std::string)glyphs_template,
(std::string)domain_name,
(version_prefix ? std::string((const char*)version_prefix) : std::optional<std::string>{}));
}
inline void TileServerOptions_withTileTemplate(TileServerOptions& self,
const rust::Str tile_template,
const rust::Str domain_name,
const int8_t* version_prefix) {
self.withTileTemplate((std::string)tile_template,
(std::string)domain_name,
(version_prefix ? std::string((const char*)version_prefix) : std::optional<std::string>{}));
}
inline void TileServerOptions_withApiKeyParameterName(TileServerOptions& self, const rust::Str value) {
self.withApiKeyParameterName((std::string)value);
Expand Down

0 comments on commit 0b5fb24

Please sign in to comment.