appservice-api: Add constructor for push_events::v1::IncomingRequest
This commit is contained in:
parent
313830812f
commit
bccdb74e15
@ -36,6 +36,13 @@ impl<'a> Request<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
impl IncomingRequest {
|
||||
/// Creates an `IncomingRequest` with the given transaction ID and list of events.
|
||||
pub fn new(txn_id: String, events: Vec<Raw<AnyEvent>>) -> IncomingRequest {
|
||||
IncomingRequest { txn_id, events }
|
||||
}
|
||||
}
|
||||
|
||||
impl Response {
|
||||
/// Creates an empty `Response`.
|
||||
pub fn new() -> Self {
|
||||
|
Loading…
x
Reference in New Issue
Block a user