repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/room/message/gallery.rs
crates/core/src/events/room/message/gallery.rs
use std::borrow::Cow; use serde::{Deserialize, Serialize, de::DeserializeOwned}; use serde_json::Value as JsonValue; use super::{ AudioMessageEventContent, FileMessageEventContent, FormattedBody, ImageMessageEventContent, VideoMessageEventContent, }; use crate::serde::JsonObject; /// The payload for a galler...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/room/message/notice.rs
crates/core/src/events/room/message/notice.rs
use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::FormattedBody; /// The payload for a notice message. #[derive(ToSchema, Deserialize, Serialize, Clone, Debug)] #[serde(tag = "msgtype", rename = "m.notice")] pub struct NoticeMessageEventContent { /// The notice text. pub body: String,...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/room/message/audio.rs
crates/core/src/events/room/message/audio.rs
use std::time::Duration; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{ OwnedMxcUri, events::room::{EncryptedFile, MediaSource}, }; /// The payload for an audio message. #[derive(ToSchema, Deserialize, Serialize, Clone, Debug)] #[serde(tag = "msgtype", rename = "m.audio")] pub s...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/room/message/emote.rs
crates/core/src/events/room/message/emote.rs
use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::FormattedBody; /// The payload for an emote message. #[derive(ToSchema, Deserialize, Serialize, Clone, Debug)] #[serde(tag = "msgtype", rename = "m.emote")] pub struct EmoteMessageEventContent { /// The emote action to perform. pub bod...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/room/message/without_relation.rs
crates/core/src/events/room/message/without_relation.rs
use salvo::oapi::ToSchema; use serde::Serialize; use super::{ AddMentions, ForwardThread, MessageType, Relation, ReplacementMetadata, ReplyMetadata, ReplyWithinThread, RoomMessageEventContent, }; use crate::events::Mentions; use crate::events::relation::{InReplyTo, Replacement, Thread}; /// Form of [`RoomMess...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/secret_storage/key.rs
crates/core/src/events/secret_storage/key.rs
//! Types for the [`m.secret_storage.key.*`] event. //! //! [`m.secret_storage.key.*`]: https://spec.matrix.org/latest/client-server-api/#key-storage use std::borrow::Cow; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize, de}; use serde_json::Value as JsonValue; use crate::{ KeyDerivationAlgorithm, ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/secret_storage/default_key.rs
crates/core/src/events/secret_storage/default_key.rs
//! Types for the [`m.secret_storage.default_key`] event. //! //! [`m.secret_storage.default_key`]: https://spec.matrix.org/latest/client-server-api/#key-storage use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::macros::EventContent; /// The payload for `DefaultKeyEvent`. #[derive(ToSchema, ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/secret_storage/secret.rs
crates/core/src/events/secret_storage/secret.rs
//! Types for events used for secrets to be stored in the user's account_data. use std::collections::BTreeMap; use serde::{Deserialize, Serialize}; use crate::serde::Base64; /// A secret and its encrypted contents. #[derive(Clone, Debug, Serialize, Deserialize)] pub struct SecretEventContent { /// Map from key ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/key/verification.rs
crates/core/src/events/key/verification.rs
//! Modules for events in the `m.key.verification` namespace. //! //! This module also contains types shared by events in its child namespaces. //! //! The MSC for the in-room variants of the `m.key.verification.*` events can be //! found on [MSC2241]. //! //! [MSC2241]: https://github.com/matrix-org/matrix-spec-propos...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/key/verification/key.rs
crates/core/src/events/key/verification/key.rs
//! Types for the [`m.key.verification.key`] event. //! //! [`m.key.verification.key`]: https://spec.matrix.org/latest/client-server-api/#mkeyverificationkey use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{OwnedTransactionId, events::relation::Reference, se...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/key/verification/accept.rs
crates/core/src/events/key/verification/accept.rs
//! Types for the [`m.key.verification.accept`] event. //! //! [`m.key.verification.accept`]: https://spec.matrix.org/latest/client-server-api/#mkeyverificationaccept use std::collections::BTreeMap; use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use serde_json::Value ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/key/verification/cancel.rs
crates/core/src/events/key/verification/cancel.rs
//! Types for the [`m.key.verification.cancel`] event. //! //! [`m.key.verification.cancel`]: https://spec.matrix.org/latest/client-server-api/#mkeyverificationcancel use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{OwnedTransactionId, PrivOwnedStr, events::...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/key/verification/ready.rs
crates/core/src/events/key/verification/ready.rs
//! Types for the [`m.key.verification.ready`] event. //! //! [`m.key.verification.ready`]: https://spec.matrix.org/latest/client-server-api/#mkeyverificationready use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::VerificationMethod; use crate::{OwnedDeviceId,...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/key/verification/mac.rs
crates/core/src/events/key/verification/mac.rs
//! Types for the [`m.key.verification.mac`] event. //! //! [`m.key.verification.mac`]: https://spec.matrix.org/latest/client-server-api/#mkeyverificationmac use std::collections::BTreeMap; use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{OwnedTransactionId...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/key/verification/request.rs
crates/core/src/events/key/verification/request.rs
//! Types for the [`m.key.verification.request`] event. //! //! [`m.key.verification.request`]: https://spec.matrix.org/latest/client-server-api/#mkeyverificationrequest use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::VerificationMethod; use crate::{OwnedDev...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/key/verification/done.rs
crates/core/src/events/key/verification/done.rs
//! Types for the [`m.key.verification.done`] event. //! //! [`m.key.verification.done`]: https://spec.matrix.org/latest/client-server-api/#mkeyverificationdone use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{OwnedTransactionId, events::relation::Reference}...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/key/verification/start.rs
crates/core/src/events/key/verification/start.rs
//! Types for the [`m.key.verification.start`] event. //! //! [`m.key.verification.start`]: https://spec.matrix.org/latest/client-server-api/#mkeyverificationstart use std::{collections::BTreeMap, fmt}; use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use serde_json::Va...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/call/notify.rs
crates/core/src/events/call/notify.rs
//! Type for the matrixRTC notify event ([MSC4075]). //! //! [MSC4075]: https://github.com/matrix-org/matrix-spec-proposals/pull/4075 use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::member::Application; use crate::events::Mentions; /// The content of an `m....
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/call/answer.rs
crates/core/src/events/call/answer.rs
//! Types for the [`m.call.answer`] event. //! //! [`m.call.answer`]: https://spec.matrix.org/latest/client-server-api/#mcallanswer use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; #[cfg(feature = "unstable-msc2747")] use super::CallCapabilities; use super::SessionDescr...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/call/negotiate.rs
crates/core/src/events/call/negotiate.rs
//! Types for the [`m.call.negotiate`] event. //! //! [`m.call.negotiate`]: https://spec.matrix.org/latest/client-server-api/#mcallnegotiate use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::SessionDescription; use crate::{OwnedVoipId, VoipVersionId}; /// **A...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/call/select_answer.rs
crates/core/src/events/call/select_answer.rs
//! Types for the [`m.call.select_answer`] event. //! //! [`m.call.select_answer`]: https://spec.matrix.org/latest/client-server-api/#mcallselect_answer use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{OwnedVoipId, VoipVersionId}; /// **Added in VoIP versio...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/call/invite.rs
crates/core/src/events/call/invite.rs
//! Types for the [`m.call.invite`] event. //! //! [`m.call.invite`]: https://spec.matrix.org/latest/client-server-api/#mcallinvite use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; #[cfg(feature = "unstable-msc2747")] use super::CallCapabilities; use super::SessionDescr...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/call/reject.rs
crates/core/src/events/call/reject.rs
//! Types for the [`m.call.reject`] event. //! //! [`m.call.reject`]: https://spec.matrix.org/latest/client-server-api/#mcallreject use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{OwnedVoipId, VoipVersionId}; /// **Added in VoIP version 1.** The content of...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/call/hangup.rs
crates/core/src/events/call/hangup.rs
//! Types for the [`m.call.hangup`] event. //! //! [`m.call.hangup`]: https://spec.matrix.org/latest/client-server-api/#mcallhangup use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{OwnedVoipId, PrivOwnedStr, VoipVersionId, serde::StringEnum}; /// The conten...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/call/sdp_stream_metadata_changed.rs
crates/core/src/events/call/sdp_stream_metadata_changed.rs
//! Types for the [`m.call.sdp_stream_metadata_changed`] event. //! //! [`m.call.sdp_stream_metadata_changed`]: https://spec.matrix.org/latest/client-server-api/#mcallsdp_stream_metadata_changed use std::collections::BTreeMap; use crate::macros::EventContent; use salvo::prelude::*; use serde::{Deserialize, Serialize}...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/call/member.rs
crates/core/src/events/call/member.rs
//! Types for matrixRTC state events ([MSC3401]). //! //! This implements a newer/updated version of MSC3401. //! //! [MSC3401]: https://github.com/matrix-org/matrix-spec-proposals/pull/3401 mod focus; mod member_data; mod member_state_key; pub use focus::*; pub use member_data::*; pub use member_state_key::*; use st...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/call/candidates.rs
crates/core/src/events/call/candidates.rs
//! Types for the [`m.call.candidates`] event. //! //! [`m.call.candidates`]: https://spec.matrix.org/latest/client-server-api/#mcallcandidates use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{OwnedVoipId, VoipVersionId}; /// The content of an `m.call.candi...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/call/member/focus.rs
crates/core/src/events/call/member/focus.rs
//! Types for MatrixRTC Focus/SFU configurations. use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::PrivOwnedStr; use crate::macros::StringEnum; /// Description of the SFU/Focus a membership can be connected to. /// /// A focus can be any server powering the MatrixRTC session (SFU, /// MCU)....
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/call/member/member_state_key.rs
crates/core/src/events/call/member/member_state_key.rs
use std::str::FromStr; use salvo::oapi::ToSchema; use serde::{ Serialize, Serializer, de::{self, Deserialize, Deserializer, Unexpected}, }; use crate::{OwnedUserId, UserId}; /// A type that can be used as the `state_key` for call member state events. /// Those state keys can be a combination of UserId and De...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/call/member/member_data.rs
crates/core/src/events/call/member/member_data.rs
//! Types for MatrixRTC `m.call.member` state event content data ([MSC3401]) //! //! [MSC3401]: https://github.com/matrix-org/matrix-spec-proposals/pull/3401 use std::time::Duration; use as_variant::as_variant; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::focus::{ActiveFocus, ActiveLive...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/secret/send.rs
crates/core/src/events/secret/send.rs
//! Types for the [`m.secret.send`] event. //! //! [`m.secret.send`]: https://spec.matrix.org/latest/client-server-api/#msecretsend use std::fmt; use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::OwnedTransactionId; /// The content of an `m.secret.send` even...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/secret/request.rs
crates/core/src/events/secret/request.rs
//! Types for the [`m.secret.request`] event. //! //! [`m.secret.request`]: https://spec.matrix.org/latest/client-server-api/#msecretrequest use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize, ser::SerializeStruct}; use crate::{ OwnedDeviceId, OwnedTransactionId, PrivOw...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/room_key/withheld.rs
crates/core/src/events/room_key/withheld.rs
//! Types for the [`m.room_key.withheld`] event. //! //! [`m.room_key.withheld`]: https://spec.matrix.org/latest/client-server-api/#mroom_keywithheld use std::borrow::Cow; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize, de}; use serde_json::value::RawValue as RawJsonValue; use crate::PrivOwnedStr; use...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/audio/amplitude_serde.rs
crates/core/src/events/audio/amplitude_serde.rs
//! `Serialize` and `Deserialize` implementations for extensible events //! (MSC1767). use serde::Deserialize; use super::Amplitude; impl<'de> Deserialize<'de> for Amplitude { fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where D: serde::Deserializer<'de>, { let uint = u64:...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/poll/unstable_end.rs
crates/core/src/events/poll/unstable_end.rs
//! Types for the `org.matrix.msc3381.poll.end` event, the unstable version of //! `m.poll.end`. use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{OwnedEventId, events::relation::Reference}; /// The payload for an unstable poll end event. /// /// This type c...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/poll/response.rs
crates/core/src/events/poll/response.rs
//! Types for the `m.poll.response` event. use std::{ops::Deref, vec}; use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::{PollResponseData, start::PollContentBlock, validate_selections}; use crate::{OwnedEventId, events::relation::Reference}; /// The payload...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/poll/unstable_response.rs
crates/core/src/events/poll/unstable_response.rs
//! Types for the `org.matrix.msc3381.poll.response` event, the unstable version //! of `m.poll.response`. use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::{PollResponseData, unstable_start::UnstablePollStartContentBlock, validate_selections}; use crate::{Own...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/poll/unstable_start.rs
crates/core/src/events/poll/unstable_start.rs
//! Types for the `org.matrix.msc3381.poll.start` event, the unstable version of //! `m.poll.start`. use std::ops::Deref; use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; mod content_serde; mod unstable_poll_answers_serde; mod unstable_poll_kind_serde; use self::unsta...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/poll/end.rs
crates/core/src/events/poll/end.rs
//! Types for the `m.poll.end` event. use std::{ collections::{BTreeMap, btree_map}, ops::Deref, }; use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{ OwnedEventId, events::{message::TextContentBlock, relation::Reference}, }; /// The payload...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/poll/start.rs
crates/core/src/events/poll/start.rs
//! Types for the `m.poll.start` event. use std::ops::Deref; use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; mod poll_answers_serde; use poll_answers_serde::PollAnswersDeHelper; use super::{ PollResponseData, compile_poll_results, end::{PollEndEventContent, P...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/poll/unstable_start/unstable_poll_kind_serde.rs
crates/core/src/events/poll/unstable_start/unstable_poll_kind_serde.rs
//! `Serialize` and `Deserialize` helpers for unstable poll kind (MSC3381). use std::borrow::Cow; use serde::{Deserialize, Deserializer, Serialize, Serializer}; use crate::{PrivOwnedStr, events::poll::start::PollKind}; /// Serializes a PollKind using the unstable prefixes. pub(super) fn serialize<S>(kind: &PollKind...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/poll/unstable_start/content_serde.rs
crates/core/src/events/poll/unstable_start/content_serde.rs
use serde::{Deserialize, Deserializer, Serialize, de, ser::SerializeStruct}; use super::{ NewUnstablePollStartEventContent, NewUnstablePollStartEventContentWithoutRelation, ReplacementUnstablePollStartEventContent, UnstablePollStartContentBlock, UnstablePollStartEventContent, }; use crate::{ EventId, ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/poll/unstable_start/unstable_poll_answers_serde.rs
crates/core/src/events/poll/unstable_start/unstable_poll_answers_serde.rs
//! `Deserialize` helpers for unstable poll answers (MSC3381). use serde::Deserialize; use super::{UnstablePollAnswer, UnstablePollAnswers}; use crate::events::poll::start::{PollAnswers, PollAnswersError}; #[derive(Debug, Default, Deserialize)] pub(crate) struct UnstablePollAnswersDeHelper(Vec<UnstablePollAnswer>); ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/poll/start/poll_answers_serde.rs
crates/core/src/events/poll/start/poll_answers_serde.rs
//! `Serialize` and `Deserialize` implementations for extensible events //! (MSC1767). use serde::Deserialize; use super::{PollAnswer, PollAnswers, PollAnswersError}; #[derive(Debug, Default, Deserialize)] pub(crate) struct PollAnswersDeHelper(Vec<PollAnswer>); impl TryFrom<PollAnswersDeHelper> for PollAnswers { ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/message/historical_serde.rs
crates/core/src/events/message/historical_serde.rs
//! Serde for old versions of MSC1767 still used in some types ([spec]). //! //! [spec]: https://github.com/matrix-org/matrix-spec-proposals/blob/d6046d8402e7a3c7a4fcbc9da16ea9bad5968992/proposals/1767-extensible-events.md use serde::{Deserialize, Serialize}; use super::{TextContentBlock, TextRepresentation}; /// Hi...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/rtc/notification.rs
crates/core/src/events/rtc/notification.rs
//! Type for the MatrixRTC notification event ([MSC4075]). //! //! Stable: `m.rtc.notification` //! Unstable: `org.matrix.msc4075.rtc.notification` //! //! [MSC4075]: https://github.com/matrix-org/matrix-spec-proposals/pull/4075 use std::time::Duration; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/rtc/decline.rs
crates/core/src/events/rtc/decline.rs
//! Type for the MatrixRTC decline event ([MSC4310]). //! //! Unstable: `org.matrix.msc4310.rtc.decline` //! //! This event is sent as a reference relation to an `m.rtc.notification` event. //! //! [MSC4310]: https://github.com/matrix-org/matrix-spec-proposals/pull/4310 use salvo::oapi::ToSchema; use serde::{Deseriali...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/space/child.rs
crates/core/src/events/space/child.rs
//! Types for the [`m.space.child`] event. //! //! [`m.space.child`]: https://spec.matrix.org/latest/client-server-api/#mspacechild use crate::macros::{Event, EventContent}; use salvo::prelude::*; use serde::{Deserialize, Serialize}; use crate::{OwnedRoomId, OwnedServerName, OwnedUserId, UnixMillis}; /// The content...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/space/parent.rs
crates/core/src/events/space/parent.rs
//! Types for the [`m.space.parent`] event. //! //! [`m.space.parent`]: https://spec.matrix.org/latest/client-server-api/#mspaceparent use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{OwnedRoomId, OwnedServerName}; /// The content of an `m.space.parent` eve...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/policy/rule.rs
crates/core/src/events/policy/rule.rs
//! Modules and types for events in the `m.policy.rule` namespace. pub mod room; pub mod server; pub mod user; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{PrivOwnedStr, serde::StringEnum}; /// The payload for policy rule events. #[derive(ToSchema, Deserialize, Serialize, Clone, Debug...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/policy/rule/user.rs
crates/core/src/events/policy/rule/user.rs
//! Types for the [`m.policy.rule.user`] event. //! //! [`m.policy.rule.user`]: https://spec.matrix.org/latest/client-server-api/#mpolicyruleuser use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::{PolicyRuleEventContent, PossiblyRedactedPolicyRuleEventContent}...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/policy/rule/server.rs
crates/core/src/events/policy/rule/server.rs
//! Types for the [`m.policy.rule.server`] event. //! //! [`m.policy.rule.server`]: https://spec.matrix.org/latest/client-server-api/#mpolicyruleserver use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::{PolicyRuleEventContent, PossiblyRedactedPolicyRuleEventCo...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/policy/rule/room.rs
crates/core/src/events/policy/rule/room.rs
//! Types for the [`m.policy.rule.room`] event. //! //! [`m.policy.rule.room`]: https://spec.matrix.org/latest/client-server-api/#mpolicyruleroom use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::{PolicyRuleEventContent, PossiblyRedactedPolicyRuleEventContent}; use crate::events::{PossiblyRed...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/media/content.rs
crates/core/src/media/content.rs
/// `GET /_matrix/media/*/download/{serverName}/{mediaId}` /// /// Retrieve content from the media store. use std::time::Duration; use reqwest::Url; use salvo::prelude::*; use serde::{Deserialize, Serialize}; // use crate::http_headers::CROSS_ORIGIN_RESOURCE_POLICY; use crate::sending::{SendRequest, SendResult}; use ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/user.rs
crates/core/src/client/user.rs
//! `POST /_matrix/client/*/user/{user_id}/openid/request_token` //! //! Request an OpenID 1.0 token to verify identity with a third party. //! `/v3/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3useruser_idopenidrequest_token use std::time::Duration; use salvo::prelud...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/rtc.rs
crates/core/src/client/rtc.rs
//! [MatrixRTC] endpoints. //! //! [MatrixRTC]: https://github.com/matrix-org/matrix-spec-proposals/pull/4143 pub mod transports;
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/event.rs
crates/core/src/client/event.rs
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/discovery.rs
crates/core/src/client/discovery.rs
//! Server discovery endpoints. pub mod auth_metadata; pub mod capabilities; pub mod client; pub mod support; pub mod versions; pub mod homeserver;
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/user_directory.rs
crates/core/src/client/user_directory.rs
//! `POST /_matrix/client/*/user_directory/search` //! //! Performs a search for users. //! `/v3/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3user_directorysearch use salvo::oapi::{ToParameters, ToSchema}; use serde::{Deserialize, Serialize}; use crate::{OwnedMxcUri,...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/key.rs
crates/core/src/client/key.rs
/// Endpoints for key management pub mod claim_key; use std::{ collections::{BTreeMap, btree_map}, ops::Deref, time::Duration, }; pub use claim_key::*; use salvo::oapi::{ToParameters, ToSchema}; use serde::{Deserialize, Serialize}; use crate::{ DeviceKeyAlgorithm, OwnedDeviceId, OwnedDeviceKeyId, Owne...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/register.rs
crates/core/src/client/register.rs
//! `POST /_matrix/client/*/register` //! //! Register an account on this homeserver. //! `/v3/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3register use std::time::Duration; use salvo::prelude::*; use serde::{Deserialize, Serialize}; use crate::{ OwnedClientSecr...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/device.rs
crates/core/src/client/device.rs
use salvo::prelude::*; use serde::{Deserialize, Serialize}; use crate::client::uiaa::AuthData; /// Endpoints for managing devices. use crate::{OwnedDeviceId, UnixMillis}; /// Information about a registered device. #[derive(ToSchema, Clone, Debug, Deserialize, Hash, Serialize)] pub struct Device { /// Device ID ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/presence.rs
crates/core/src/client/presence.rs
/// `PUT /_matrix/client/*/presence/{user_id}/status` /// /// Set presence status for this user. /// `/v3/` ([spec]) /// /// [spec]: https://spec.matrix.org/latest/client-server-api/#put_matrixclientv3presenceuser_idstatus use std::time::Duration; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use cr...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/push.rs
crates/core/src/client/push.rs
//! Endpoints for push notifications. mod notification; mod push_rule; mod pusher; pub use notification::*; pub use push_rule::*; pub use pusher::*;
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/session.rs
crates/core/src/client/session.rs
use std::{borrow::Cow, fmt, time::Duration}; use salvo::prelude::*; use serde::{ Deserialize, Deserializer, Serialize, de::{self, DeserializeOwned}, }; use serde_json::Value as JsonValue; use crate::{ OwnedDeviceId, OwnedMxcUri, OwnedUserId, PrivOwnedStr, client::uiaa::{AuthData, UserIdentifier}, ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/filter.rs
crates/core/src/client/filter.rs
//! Endpoints for event filters. // pub mod create_filter; // pub mod get_filter; mod lazy_load; mod url; use salvo::prelude::*; use serde::{Deserialize, Serialize}; pub use self::{lazy_load::LazyLoadOptions, url::UrlFilter}; use crate::{OwnedRoomId, OwnedUserId, PrivOwnedStr, serde::StringEnum}; /// Format to use...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/redact.rs
crates/core/src/client/redact.rs
//! `PUT /_matrix/client/*/rooms/{room_id}/redact/{event_id}/{txn_id}` //! //! Redact an event, stripping all information not critical to the event graph //! integrity. //! `/v3/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#put_matrixclientv3roomsroomidredacteventidtxnid use salvo::prel...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/relation.rs
crates/core/src/client/relation.rs
use salvo::oapi::{ToParameters, ToSchema}; use serde::{Deserialize, Serialize}; /// `GET /_matrix/client/*/rooms/{room_id}/relations/{event_id}/{rel_type}/ /// {event_type}` /// /// Get the child events for a given parent event which relate to the parent /// using the given `rel_type` and having the given `event_type`...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/appservice.rs
crates/core/src/client/appservice.rs
/// `POST /_matrix/client/*/appservice/{appserviceId}/ping}` /// /// Ask the homeserver to ping the application service to ensure the connection /// works. `/v1/` ([spec]) /// /// [spec]: https://spec.matrix.org/latest/application-service-api/#post_matrixclientv1appserviceappserviceidping use std::time::Duration; use ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/state.rs
crates/core/src/client/state.rs
use salvo::prelude::*; use serde::{Deserialize, Serialize}; use crate::{ OwnedEventId, OwnedRoomId, UnixMillis, events::{AnyStateEvent, AnyStateEventContent, StateEventType}, serde::RawJson, }; // /// `GET /_matrix/client/*/rooms/{room_id}/state/{eventType}/{stateKey}` // /// // /// Get state events assoc...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/media.rs
crates/core/src/client/media.rs
/// Endpoints for the media repository. mod content; use std::time::Duration; pub use content::*; use reqwest::Url; use salvo::oapi::{ToParameters, ToSchema}; use serde::{Deserialize, Serialize}; use crate::{ OwnedMxcUri, OwnedServerName, ServerName, UnixMillis, media::ResizeMethod, sending::{SendRequest,...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/search.rs
crates/core/src/client/search.rs
//! `POST /_matrix/client/*/search` //! //! Search events. //! `/v3/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3search use std::collections::BTreeMap; use salvo::oapi::{ToParameters, ToSchema}; use serde::{Deserialize, Serialize}; use crate::{ OwnedEventId, Own...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/rendezvous.rs
crates/core/src/client/rendezvous.rs
//! `POST /_matrix/client/*/rendezvous/` //! //! Create a rendezvous session. pub mod unstable { //! `msc4108` ([MSC]) //! //! [MSC]: https://github.com/matrix-org/matrix-spec-proposals/pull/4108 use http::header::{CONTENT_TYPE, ETAG, EXPIRES, LAST_MODIFIED}; #[cfg(feature = "client")] use cra...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/backup.rs
crates/core/src/client/backup.rs
/// Endpoints for server-side key backups. use std::collections::BTreeMap; use salvo::prelude::*; use serde::{Deserialize, Serialize}; use crate::{ OwnedRoomId, identifiers::CrossSigningOrDeviceSignatures, serde::{Base64, RawJson, RawJsonValue}, }; /// A wrapper around a mapping of session IDs to key dat...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/http_header.rs
crates/core/src/client/http_header.rs
//! Helpers for HTTP headers with the `http` crate. #![allow(clippy::declare_interior_mutable_const)] use http::{HeaderValue, header::HeaderName}; use web_time::{Duration, SystemTime, UNIX_EPOCH}; use crate::error::{HeaderDeserializationError, HeaderSerializationError}; pub use crate::http_headers::{ ContentDispo...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/membership.rs
crates/core/src/client/membership.rs
//! Endpoints for room membership. use std::collections::BTreeMap; use salvo::prelude::*; use serde::{Deserialize, Serialize}; use crate::events::room::member::RoomMemberEvent; use crate::serde::{JsonValue, RawJson, StringEnum}; use crate::third_party::Medium; use crate::{ OwnedMxcUri, OwnedRoomId, OwnedServerNam...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/typing.rs
crates/core/src/client/typing.rs
//! `PUT /_matrix/client/*/rooms/{room_id}/typing/{user_id}` //! //! Send a typing event to a room. //! `/v3/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#put_matrixclientv3roomsroomidtypinguser_id use std::time::Duration; use salvo::oapi::ToSchema; use serde::{Deserialize, Deserializer...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/sync_events.rs
crates/core/src/client/sync_events.rs
//! `GET /_matrix/client/*/sync` //! //! Get all new events from all rooms since the last sync or a given point in //! time. use salvo::prelude::*; use serde::{self, Deserialize, Serialize}; pub mod v3; pub mod v5; /// Unread notifications count. #[derive(ToSchema, Clone, Debug, Default, Deserialize, Serialize)] pub...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/server.rs
crates/core/src/client/server.rs
//! `GET /_matrix/client/*/admin/whois/{user_id}` //! //! Get information about a particular user. //! `/v3/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3adminwhoisuser_id use std::collections::BTreeMap; use salvo::prelude::*; use serde::{Deserialize, Serialize}; use ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/voip.rs
crates/core/src/client/voip.rs
//! `GET /_matrix/client/*/voip/turnServer` //! //! Get credentials for the client to use when initiating VoIP calls. //! `/v3/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3voipturnserver use std::time::Duration; use salvo::prelude::*; use serde::Serialize; // const M...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/authenticated_media.rs
crates/core/src/client/authenticated_media.rs
//! Authenticated endpoints for the [content repository]. //! //! [content repository]: https://spec.matrix.org/latest/client-server-api/#content-repository pub mod get_content; pub mod get_content_as_filename; pub mod get_content_thumbnail; pub mod get_media_config; pub mod get_media_preview;
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/space.rs
crates/core/src/client/space.rs
use salvo::prelude::*; use serde::{Deserialize, Serialize}; use crate::{ EventEncryptionAlgorithm, OwnedMxcUri, OwnedRoomAliasId, OwnedRoomId, RoomVersionId, events::space::child::HierarchySpaceChildEvent, room::RoomType, serde::RawJson, space::SpaceRoomJoinRule, }; /// Endpoints for spaces. /// /// See t...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/tag.rs
crates/core/src/client/tag.rs
use salvo::prelude::*; use serde::{Deserialize, Serialize}; use crate::{ OwnedRoomId, OwnedUserId, events::tag::{TagInfo, Tags}, }; // /// `GET /_matrix/client/*/user/{user_id}/rooms/{room_id}/tags` // /// // /// Get the tags associated with a room. // /// `/v3/` ([spec]) // /// // /// [spec]: https://spec.ma...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/message.rs
crates/core/src/client/message.rs
use salvo::prelude::*; use serde::{Deserialize, Serialize}; use crate::{ Direction, OwnedEventId, OwnedRoomId, OwnedTransactionId, UnixMillis, client::filter::RoomEventFilter, events::{AnyStateEvent, AnyTimelineEvent, MessageLikeEventType}, serde::RawJson, }; // /// `GET /_matrix/client/*/rooms/{room_...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/uiaa.rs
crates/core/src/client/uiaa.rs
//! Module for [User-Interactive Authentication API][uiaa] types. //! //! [uiaa]: https://spec.matrix.org/latest/client-server-api/#user-interactive-authentication-api use std::error::Error as StdError; use std::{borrow::Cow, fmt, marker::PhantomData}; use serde::{Deserialize, Deserializer, Serialize, de}; use serde_...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/room.rs
crates/core/src/client/room.rs
/// Endpoints for room management. mod alias; mod summary; mod thread; mod thread_msc4306; mod thread_msc4308; pub use alias::*; use salvo::prelude::*; use serde::{Deserialize, Serialize}; pub use summary::*; pub use thread::*; pub use thread_msc4306::*; pub use thread_msc4308::*; use crate::{ OwnedEventId, OwnedR...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/directory.rs
crates/core/src/client/directory.rs
use salvo::prelude::*; use serde::{Deserialize, Serialize}; /// `POST /_matrix/client/*/publicRooms` /// /// Get the list of rooms in this homeserver's public directory. /// `/v3/` ([spec]) /// /// [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3publicrooms use crate::directory::{PublicRoo...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/dehydrated_device.rs
crates/core/src/client/dehydrated_device.rs
//! Endpoints for managing dehydrated devices. use serde::{Deserialize, Serialize}; use crate::{PrivOwnedStr, serde::StringEnum}; /// Data for a dehydrated device. #[derive(Clone, Debug, Deserialize, Serialize)] #[serde(try_from = "Helper", into = "Helper")] pub enum DehydratedDeviceData { /// The `org.matrix.ms...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/profile.rs
crates/core/src/client/profile.rs
/// `GET /_matrix/client/*/profile/{user_id}/avatar_url` /// /// Get the avatar URL of a user. /// `/v3/` ([spec]) /// /// [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3profileuser_idavatar_url use std::borrow::Cow; use salvo::prelude::*; use serde::de::DeserializeOwned; use serde::{Deser...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/account.rs
crates/core/src/client/account.rs
pub mod data; pub mod threepid; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::macros::StringEnum; use crate::{ OwnedClientSecret, OwnedDeviceId, OwnedSessionId, OwnedUserId, PrivOwnedStr, client::uiaa::AuthData, }; /// Additional authentication information for requestToken endpoi...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/push/notification.rs
crates/core/src/client/push/notification.rs
//! `GET /_matrix/client/*/notifications` //! //! Paginate through the list of events that the user has been, or would have //! been notified about. `/v3/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3notifications use salvo::prelude::*; use serde::{Deserialize, Serialize...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/push/push_rule.rs
crates/core/src/client/push/push_rule.rs
use salvo::prelude::*; /// `GET /_matrix/client/*/pushrules/{scope}/{kind}/{rule_id}` /// /// Retrieve a single specified push rule. /// `/v3/` ([spec]) /// /// [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3pushrulesscopekindruleid use serde::{Deserialize, Serialize}; use crate::push::{Ac...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/push/pusher.rs
crates/core/src/client/push/pusher.rs
//! `GET /_matrix/client/*/pushers` //! //! Gets all currently active pushers for the authenticated user. use js_option::JsOption; use salvo::prelude::*; use serde::{Deserialize, Serialize, de, ser::SerializeStruct}; use crate::{ push::{Pusher, PusherIds}, serde::{RawJsonValue, from_raw_json_value}, }; // `/...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/discovery/auth_metadata.rs
crates/core/src/client/discovery/auth_metadata.rs
//! `GET /_matrix/client/*/auth_metadata` //! //! Get the metadata of the authorization server that is trusted by the homeserver. use std::collections::BTreeSet; use ::serde::Serialize; use salvo::prelude::*; use url::Url; use crate::PrivOwnedStr; use crate::serde::{RawJson, StringEnum}; mod serde; // const METADAT...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/discovery/support.rs
crates/core/src/client/discovery/support.rs
//! `GET /.well-known/matrix/support` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#getwell-knownmatrixsupport //! //! Get server admin contact and support page of a homeserver's domain. use salvo::prelude::*; use serde::{Deserialize, Serialize}; use crate::{OwnedUserId, PrivOwnedStr, serd...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/discovery/client.rs
crates/core/src/client/discovery/client.rs
//! `GET /.well-known/matrix/client` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#getwell-knownmatrixclient //! //! Get discovery information about the domain. use std::borrow::Cow; use salvo::prelude::*; #[cfg(feature = "unstable-msc4143")] use serde::de::DeserializeOwned; use serde::{D...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/discovery/versions.rs
crates/core/src/client/discovery/versions.rs
//! `GET /_matrix/client/*/capabilities` //! //! Get information about the server's supported feature set and other relevant //! capabilities ([spec]). //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#capabilities-negotiation use std::collections::BTreeMap; use salvo::prelude::*; use serde::Serialize...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/discovery/capabilities.rs
crates/core/src/client/discovery/capabilities.rs
//! `GET /_matrix/client/*/capabilities` //! //! Get information about the server's supported feature set and other relevant capabilities //! ([spec]). //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#capabilities-negotiation use std::{borrow::Cow, collections::BTreeMap}; use maplit::btreemap; use sa...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/discovery/homeserver.rs
crates/core/src/client/discovery/homeserver.rs
//! `GET /.well-known/matrix/client` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#getwell-knownmatrixclient //! //! Get discovery information about the domain. #[cfg(feature = "unstable-msc4143")] use std::borrow::Cow; use crate::auth_scheme::NoAuthentication; #[cfg(feature = "unstable-m...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/discovery/auth_metadata/serde.rs
crates/core/src/client/discovery/auth_metadata/serde.rs
use std::collections::BTreeSet; use serde::{Deserialize, de}; use url::Url; #[cfg(feature = "unstable-msc4191")] use super::AccountManagementAction; use super::{ AuthorizationServerMetadata, CodeChallengeMethod, GrantType, Prompt, ResponseMode, ResponseType, }; impl<'de> Deserialize<'de> for AuthorizationServerM...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false