Skip to content

Commit d3c60c8

Browse files
schema_str() methods should be const
1 parent 1686ee5 commit d3c60c8

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

src/odf/metadata/src/dtos/dtos_generated.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub mod auth {
5353
pub fn schema() -> &'static TypeUri {
5454
&ACCOUNT_SCHEMA
5555
}
56-
pub fn schema_str() -> &'static str {
56+
pub const fn schema_str() -> &'static str {
5757
ACCOUNT_SCHEMA_STR
5858
}
5959
}
@@ -169,7 +169,7 @@ pub mod auth {
169169
pub fn schema() -> &'static TypeUri {
170170
&RELATIONS_SCHEMA
171171
}
172-
pub fn schema_str() -> &'static str {
172+
pub const fn schema_str() -> &'static str {
173173
RELATIONS_SCHEMA_STR
174174
}
175175
}
@@ -229,7 +229,7 @@ pub mod config {
229229
pub fn schema() -> &'static TypeUri {
230230
&SECRET_SET_SCHEMA
231231
}
232-
pub fn schema_str() -> &'static str {
232+
pub const fn schema_str() -> &'static str {
233233
SECRET_SET_SCHEMA_STR
234234
}
235235
}
@@ -297,7 +297,7 @@ pub mod config {
297297
pub fn schema() -> &'static TypeUri {
298298
&VARIABLE_SET_SCHEMA
299299
}
300-
pub fn schema_str() -> &'static str {
300+
pub const fn schema_str() -> &'static str {
301301
VARIABLE_SET_SCHEMA_STR
302302
}
303303
}
@@ -836,7 +836,7 @@ pub mod dataset {
836836
pub fn schema() -> &'static TypeUri {
837837
&DATASET_SCHEMA
838838
}
839-
pub fn schema_str() -> &'static str {
839+
pub const fn schema_str() -> &'static str {
840840
DATASET_SCHEMA_STR
841841
}
842842
}
@@ -1149,7 +1149,7 @@ pub mod dataset {
11491149
pub fn schema() -> &'static TypeUri {
11501150
&PROJECTION_SCHEMA
11511151
}
1152-
pub fn schema_str() -> &'static str {
1152+
pub const fn schema_str() -> &'static str {
11531153
PROJECTION_SCHEMA_STR
11541154
}
11551155
}
@@ -1584,7 +1584,7 @@ pub mod flow {
15841584
pub fn schema() -> &'static TypeUri {
15851585
&FLOW_SCHEMA
15861586
}
1587-
pub fn schema_str() -> &'static str {
1587+
pub const fn schema_str() -> &'static str {
15881588
FLOW_SCHEMA_STR
15891589
}
15901590
}
@@ -1697,7 +1697,7 @@ pub mod flow {
16971697
pub fn schema() -> &'static TypeUri {
16981698
&TASK_SCHEMA
16991699
}
1700-
pub fn schema_str() -> &'static str {
1700+
pub const fn schema_str() -> &'static str {
17011701
TASK_SCHEMA_STR
17021702
}
17031703
}
@@ -2116,7 +2116,7 @@ pub mod sink {
21162116
pub fn schema() -> &'static TypeUri {
21172117
&WEBHOOK_TARGET_SCHEMA
21182118
}
2119-
pub fn schema_str() -> &'static str {
2119+
pub const fn schema_str() -> &'static str {
21202120
WEBHOOK_TARGET_SCHEMA_STR
21212121
}
21222122
}
@@ -3049,7 +3049,7 @@ pub mod source {
30493049
pub fn schema() -> &'static TypeUri {
30503050
&SOURCE_SCHEMA
30513051
}
3052-
pub fn schema_str() -> &'static str {
3052+
pub const fn schema_str() -> &'static str {
30533053
SOURCE_SCHEMA_STR
30543054
}
30553055
}
@@ -3158,7 +3158,7 @@ pub mod storage {
31583158
pub fn schema() -> &'static TypeUri {
31593159
&PERSISTENT_VOLUME_SCHEMA
31603160
}
3161-
pub fn schema_str() -> &'static str {
3161+
pub const fn schema_str() -> &'static str {
31623162
PERSISTENT_VOLUME_SCHEMA_STR
31633163
}
31643164
}

0 commit comments

Comments
 (0)