forked from Fraunhofer-AISEC/ids-clearing-house-service
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ch-app): Removed ApiResponse, fixed warnings and hid more doc_ty…
…pe related functions
- Loading branch information
1 parent
387498c
commit fc710b7
Showing
16 changed files
with
95 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,5 +64,6 @@ serial_test = "2.0.0" | |
tempfile = "3.8.0" | ||
|
||
[features] | ||
default = [] | ||
# Enables the doc_type API | ||
doc_type = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,10 @@ | ||
use crate::model::ids::message::IdsMessage; | ||
|
||
/// IDS Multipart message represented as a JSON struct | ||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] | ||
pub struct ClearingHouseMessage { | ||
pub header: IdsMessage, | ||
pub payload: Option<String>, | ||
#[serde(rename = "payloadType")] | ||
pub payload_type: Option<String>, | ||
} | ||
|
||
impl ClearingHouseMessage { | ||
pub fn new( | ||
header: IdsMessage, | ||
payload: Option<String>, | ||
payload_type: Option<String>, | ||
) -> ClearingHouseMessage { | ||
ClearingHouseMessage { | ||
header, | ||
payload, | ||
payload_type, | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.