mirror of
https://github.com/instant-labs/instant-acme.git
synced 2025-02-17 13:52:07 +00:00
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
Block a user