Skip to content

Commit

Permalink
Updated samples
Browse files Browse the repository at this point in the history
  • Loading branch information
ranger-ross committed Feb 22, 2025
1 parent bed9a17 commit 12fdd01
Show file tree
Hide file tree
Showing 18 changed files with 45 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**boolean** | **bool** | |
**uuid** | [**uuid::Uuid**](uuid::Uuid.md) | |
**bytes** | **String** | |
**decimal** | Option<**String**> | | [optional]
**decimal** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ pub struct TypeTesting {
#[serde_as(as = "serde_with::base64::Base64")]
#[serde(rename = "bytes")]
pub bytes: Vec<u8>,
#[serde(rename = "decimal", skip_serializing_if = "Option::is_none")]
pub decimal: Option<String>,
#[serde(rename = "decimal")]
pub decimal: String,
}

impl TypeTesting {
/// Test handling of different field data types
pub fn new(int32: i32, int64: i64, float: f32, double: f64, string: String, boolean: bool, uuid: uuid::Uuid, bytes: Vec<u8>) -> TypeTesting {
pub fn new(int32: i32, int64: i64, float: f32, double: f64, string: String, boolean: bool, uuid: uuid::Uuid, bytes: Vec<u8>, decimal: String) -> TypeTesting {
TypeTesting {
int32,
int64,
Expand All @@ -50,7 +50,7 @@ impl TypeTesting {
boolean,
uuid,
bytes,
decimal: None,
decimal,
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**boolean** | **bool** | |
**uuid** | [**uuid::Uuid**](uuid::Uuid.md) | |
**bytes** | **String** | |
**decimal** | Option<**String**> | | [optional]
**decimal** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ pub struct TypeTesting {
#[serde_as(as = "serde_with::base64::Base64")]
#[serde(rename = "bytes")]
pub bytes: Vec<u8>,
#[serde(rename = "decimal", skip_serializing_if = "Option::is_none")]
pub decimal: Option<String>,
#[serde(rename = "decimal")]
pub decimal: String,
}

impl TypeTesting {
/// Test handling of different field data types
pub fn new(int32: i32, int64: i64, float: f32, double: f64, string: String, boolean: bool, uuid: uuid::Uuid, bytes: Vec<u8>) -> TypeTesting {
pub fn new(int32: i32, int64: i64, float: f32, double: f64, string: String, boolean: bool, uuid: uuid::Uuid, bytes: Vec<u8>, decimal: String) -> TypeTesting {
TypeTesting {
int32,
int64,
Expand All @@ -50,7 +50,7 @@ impl TypeTesting {
boolean,
uuid,
bytes,
decimal: None,
decimal,
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**boolean** | **bool** | |
**uuid** | [**uuid::Uuid**](uuid::Uuid.md) | |
**bytes** | **String** | |
**decimal** | Option<**String**> | | [optional]
**decimal** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ pub struct TypeTesting {
#[serde_as(as = "serde_with::base64::Base64")]
#[serde(rename = "bytes")]
pub bytes: Vec<u8>,
#[serde(rename = "decimal", skip_serializing_if = "Option::is_none")]
pub decimal: Option<String>,
#[serde(rename = "decimal")]
pub decimal: String,
}

impl TypeTesting {
/// Test handling of different field data types
pub fn new(int32: i32, int64: i64, float: f32, double: f64, string: String, boolean: bool, uuid: uuid::Uuid, bytes: Vec<u8>) -> TypeTesting {
pub fn new(int32: i32, int64: i64, float: f32, double: f64, string: String, boolean: bool, uuid: uuid::Uuid, bytes: Vec<u8>, decimal: String) -> TypeTesting {
TypeTesting {
int32,
int64,
Expand All @@ -50,7 +50,7 @@ impl TypeTesting {
boolean,
uuid,
bytes,
decimal: None,
decimal,
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**boolean** | **bool** | |
**uuid** | [**uuid::Uuid**](uuid::Uuid.md) | |
**bytes** | **String** | |
**decimal** | Option<**String**> | | [optional]
**decimal** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ pub struct TypeTesting {
#[serde_as(as = "serde_with::base64::Base64")]
#[serde(rename = "bytes")]
pub bytes: Vec<u8>,
#[serde(rename = "decimal", skip_serializing_if = "Option::is_none")]
pub decimal: Option<String>,
#[serde(rename = "decimal")]
pub decimal: String,
}

impl TypeTesting {
/// Test handling of different field data types
pub fn new(int32: i32, int64: i64, float: f32, double: f64, string: String, boolean: bool, uuid: uuid::Uuid, bytes: Vec<u8>) -> TypeTesting {
pub fn new(int32: i32, int64: i64, float: f32, double: f64, string: String, boolean: bool, uuid: uuid::Uuid, bytes: Vec<u8>, decimal: String) -> TypeTesting {
TypeTesting {
int32,
int64,
Expand All @@ -50,7 +50,7 @@ impl TypeTesting {
boolean,
uuid,
bytes,
decimal: None,
decimal,
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**boolean** | **bool** | |
**uuid** | [**uuid::Uuid**](uuid::Uuid.md) | |
**bytes** | **String** | |
**decimal** | Option<**String**> | | [optional]
**decimal** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ pub struct TypeTesting {
#[serde_as(as = "serde_with::base64::Base64")]
#[serde(rename = "bytes")]
pub bytes: Vec<u8>,
#[serde(rename = "decimal", skip_serializing_if = "Option::is_none")]
pub decimal: Option<String>,
#[serde(rename = "decimal")]
pub decimal: String,
}

impl TypeTesting {
/// Test handling of different field data types
pub fn new(int32: i32, int64: i64, float: f32, double: f64, string: String, boolean: bool, uuid: uuid::Uuid, bytes: Vec<u8>) -> TypeTesting {
pub fn new(int32: i32, int64: i64, float: f32, double: f64, string: String, boolean: bool, uuid: uuid::Uuid, bytes: Vec<u8>, decimal: String) -> TypeTesting {
TypeTesting {
int32,
int64,
Expand All @@ -50,7 +50,7 @@ impl TypeTesting {
boolean,
uuid,
bytes,
decimal: None,
decimal,
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**boolean** | **bool** | |
**uuid** | [**uuid::Uuid**](uuid::Uuid.md) | |
**bytes** | **String** | |
**decimal** | Option<**String**> | | [optional]
**decimal** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ pub struct TypeTesting {
#[serde_as(as = "serde_with::base64::Base64")]
#[serde(rename = "bytes")]
pub bytes: Vec<u8>,
#[serde(rename = "decimal", skip_serializing_if = "Option::is_none")]
pub decimal: Option<String>,
#[serde(rename = "decimal")]
pub decimal: String,
}

impl TypeTesting {
/// Test handling of different field data types
pub fn new(int32: i32, int64: i64, float: f32, double: f64, string: String, boolean: bool, uuid: uuid::Uuid, bytes: Vec<u8>) -> TypeTesting {
pub fn new(int32: i32, int64: i64, float: f32, double: f64, string: String, boolean: bool, uuid: uuid::Uuid, bytes: Vec<u8>, decimal: String) -> TypeTesting {
TypeTesting {
int32,
int64,
Expand All @@ -50,7 +50,7 @@ impl TypeTesting {
boolean,
uuid,
bytes,
decimal: None,
decimal,
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**boolean** | **bool** | |
**uuid** | [**uuid::Uuid**](uuid::Uuid.md) | |
**bytes** | **String** | |
**decimal** | Option<**String**> | | [optional]
**decimal** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ pub struct TypeTesting {
#[serde_as(as = "serde_with::base64::Base64")]
#[serde(rename = "bytes")]
pub bytes: Vec<u8>,
#[serde(rename = "decimal", skip_serializing_if = "Option::is_none")]
pub decimal: Option<String>,
#[serde(rename = "decimal")]
pub decimal: String,
}

impl TypeTesting {
/// Test handling of different field data types
pub fn new(int32: i32, int64: i64, float: f32, double: f64, string: String, boolean: bool, uuid: uuid::Uuid, bytes: Vec<u8>) -> TypeTesting {
pub fn new(int32: i32, int64: i64, float: f32, double: f64, string: String, boolean: bool, uuid: uuid::Uuid, bytes: Vec<u8>, decimal: String) -> TypeTesting {
TypeTesting {
int32,
int64,
Expand All @@ -50,7 +50,7 @@ impl TypeTesting {
boolean,
uuid,
bytes,
decimal: None,
decimal,
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**boolean** | **bool** | |
**uuid** | [**uuid::Uuid**](uuid::Uuid.md) | |
**bytes** | **String** | |
**decimal** | Option<**String**> | | [optional]
**decimal** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ pub struct FooTypeTesting {
#[serde_as(as = "serde_with::base64::Base64")]
#[serde(rename = "bytes")]
pub bytes: Vec<u8>,
#[serde(rename = "decimal", skip_serializing_if = "Option::is_none")]
pub decimal: Option<String>,
#[serde(rename = "decimal")]
pub decimal: String,
}

impl FooTypeTesting {
/// Test handling of different field data types
pub fn new(int32: i32, int64: i64, float: f32, double: f64, string: String, boolean: bool, uuid: uuid::Uuid, bytes: Vec<u8>) -> FooTypeTesting {
pub fn new(int32: i32, int64: i64, float: f32, double: f64, string: String, boolean: bool, uuid: uuid::Uuid, bytes: Vec<u8>, decimal: String) -> FooTypeTesting {
FooTypeTesting {
int32,
int64,
Expand All @@ -50,7 +50,7 @@ impl FooTypeTesting {
boolean,
uuid,
bytes,
decimal: None,
decimal,
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**boolean** | **bool** | |
**uuid** | [**uuid::Uuid**](uuid::Uuid.md) | |
**bytes** | **String** | |
**decimal** | Option<**String**> | | [optional]
**decimal** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ pub struct TypeTesting {
#[serde_as(as = "serde_with::base64::Base64")]
#[serde(rename = "bytes")]
pub bytes: Vec<u8>,
#[serde(rename = "decimal", skip_serializing_if = "Option::is_none")]
pub decimal: Option<String>,
#[serde(rename = "decimal")]
pub decimal: String,
}

impl TypeTesting {
/// Test handling of different field data types
pub fn new(int32: i32, int64: i64, float: f32, double: f64, string: String, boolean: bool, uuid: uuid::Uuid, bytes: Vec<u8>) -> TypeTesting {
pub fn new(int32: i32, int64: i64, float: f32, double: f64, string: String, boolean: bool, uuid: uuid::Uuid, bytes: Vec<u8>, decimal: String) -> TypeTesting {
TypeTesting {
int32,
int64,
Expand All @@ -50,7 +50,7 @@ impl TypeTesting {
boolean,
uuid,
bytes,
decimal: None,
decimal,
}
}
}
Expand Down

0 comments on commit 12fdd01

Please # to comment.