diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-10-21 17:56:52 +0200 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-10-21 17:56:52 +0200 |
commit | 0ac60164921e4a95f0eeb8818858863e5107711f (patch) | |
tree | dab87c0e381f8e3c58a3fe1bd12aa94a7d8a0a9f | |
parent | ad92a218c34a08d33cd82ed2c339276b663e0060 (diff) |
add logout call
-rw-r--r-- | src/call/account.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/call/account.rs b/src/call/account.rs index c2434a7..f35ab00 100644 --- a/src/call/account.rs +++ b/src/call/account.rs @@ -18,3 +18,13 @@ impl From<Login<'_>> for xmlrpc::Value { xmlrpc::Value::Struct(map) } } + +// Contains no information. This just signals to the server +// that it should end the session. +pub(crate) struct Logout; + +impl From<Logout> for xmlrpc::Value { + fn from(_logout: Logout) -> Self { + xmlrpc::Value::Nil + } +} |