-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored inner methods and simplified them
Signed-off-by: Bogdan Mircea <mirceapetrebogdan@gmail.com>
- Loading branch information
Showing
23 changed files
with
327 additions
and
734 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
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,4 +1,3 @@ | ||
pub mod initiation_type; | ||
pub mod invitee; | ||
pub mod inviter; | ||
pub mod pairwise_info; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod states; |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pub mod complete; | ||
pub mod responded; |
21 changes: 21 additions & 0 deletions
21
aries_vcx/src/protocols/typestate_con/common/states/responded.rs
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use messages::diddoc::aries::diddoc::AriesDidDoc; | ||
|
||
use crate::protocols::typestate_con::trait_bounds::TheirDidDoc; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] | ||
pub struct RespondedState { | ||
pub did_doc: AriesDidDoc, | ||
pub thread_id: String | ||
} | ||
|
||
impl RespondedState { | ||
pub fn new(did_doc: AriesDidDoc, thread_id: String) -> Self { | ||
Self { did_doc, thread_id } | ||
} | ||
} | ||
|
||
impl TheirDidDoc for RespondedState { | ||
fn their_did_doc(&self) -> &AriesDidDoc { | ||
&self.did_doc | ||
} | ||
} |
File renamed without changes.
Oops, something went wrong.