Add Order::into_parts() method
This commit is contained in:
parent
10ee80b0bb
commit
fcb735c5d8
|
@ -179,6 +179,11 @@ impl Order {
|
|||
Ok(&self.state)
|
||||
}
|
||||
|
||||
/// Extract the URL and last known state from the `Order`
|
||||
pub fn into_parts(self) -> (String, OrderState) {
|
||||
(self.url, self.state)
|
||||
}
|
||||
|
||||
/// Get the last known state of the order
|
||||
///
|
||||
/// Call `refresh()` to get the latest state from the server.
|
||||
|
|
Loading…
Reference in New Issue