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/serde/base64.rs
crates/core/src/serde/base64.rs
//! Transparent base64 encoding / decoding as part of (de)serialization. use std::{fmt, marker::PhantomData}; use base64::{ Engine, engine::{DecodePaddingMode, GeneralPurpose, GeneralPurposeConfig, general_purpose}, }; use salvo::oapi::{Components, RefOr, Schema, ToSchema}; use serde::{Deserialize, Deserializ...
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/serde/pdu_process_response.rs
crates/core/src/serde/pdu_process_response.rs
use std::{collections::BTreeMap, fmt}; use serde::{ Deserialize, Serialize, de::{Deserializer, MapAccess, Visitor}, ser::{SerializeMap, Serializer}, }; use crate::OwnedEventId; #[derive(Deserialize, Serialize)] struct WrappedError { #[serde(skip_serializing_if = "Option::is_none")] error: Option<...
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/serde/cow.rs
crates/core/src/serde/cow.rs
use std::{borrow::Cow, str}; use serde::de::{self, Deserializer, Unexpected, Visitor}; /// Deserialize a `Cow<'de, str>`. /// /// Different from serde's implementation of `Deserialize` for `Cow` since it /// borrows from the input when possible. /// /// This will become unnecessary if Rust gains lifetime specializati...
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/serde/strings.rs
crates/core/src/serde/strings.rs
use std::{collections::BTreeMap, fmt, marker::PhantomData}; use serde::{ Deserialize, Serialize, de::{self, Deserializer, IntoDeserializer as _, MapAccess, Visitor}, ser::Serializer, }; /// Serde deserialization decorator to map empty Strings to None, /// and forward non-empty Strings to the Deserialize i...
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/serde/can_be_empty.rs
crates/core/src/serde/can_be_empty.rs
//! Helpers for emptiness checks in `#[serde(skip_serializing_if)]`. /// Trait for types that have an "empty" state. /// /// If `Default` is implemented for `Self`, `Self::default().is_empty()` should /// always be `true`. pub trait CanBeEmpty { /// Check whether `self` is empty. fn is_empty(&self) -> bool; } ...
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/serde/buf.rs
crates/core/src/serde/buf.rs
use bytes::BufMut; use serde::Serialize; /// Converts a byte slice to a buffer by copying. pub fn slice_to_buf<B: Default + BufMut>(s: &[u8]) -> B { let mut buf = B::default(); buf.put_slice(s); buf } /// Creates a buffer and writes a serializable value to it. pub fn json_to_buf<B: Default + BufMut, T: 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/serde/canonical_json.rs
crates/core/src/serde/canonical_json.rs
//! Canonical JSON types and related functions. use std::{fmt, mem}; use serde::Serialize; use serde::de::DeserializeOwned; use serde_json::Value as JsonValue; mod value; pub use self::value::{CanonicalJsonObject, CanonicalJsonValue}; use crate::{room_version_rules::RedactionRules, serde::RawJson}; const CANONICAL...
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/serde/duration.rs
crates/core/src/serde/duration.rs
//! De-/serialization functions for `std::time::Duration` objects pub mod ms; pub mod opt_ms; pub mod opt_secs; pub mod secs;
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/serde/duration/opt_ms.rs
crates/core/src/serde/duration/opt_ms.rs
//! De-/serialization functions for `Option<std::time::Duration>` objects //! represented as milliseconds. use std::time::Duration; use serde::{ de::{Deserialize, Deserializer}, ser::{Error, Serialize, Serializer}, }; /// Serialize an `Option<Duration>`. /// /// Will fail if integer is greater than the maxim...
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/serde/duration/secs.rs
crates/core/src/serde/duration/secs.rs
//! De-/serialization functions for `Option<std::time::Duration>` objects //! represented as milliseconds. use std::time::Duration; use serde::{ de::{Deserialize, Deserializer}, ser::{Serialize, Serializer}, }; /// Serializes a Duration to an integer representing seconds. /// /// Will fail if integer is grea...
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/serde/duration/ms.rs
crates/core/src/serde/duration/ms.rs
//! De-/serialization functions for `Option<std::time::Duration>` objects //! represented as milliseconds. use std::time::Duration; use serde::{ de::{Deserialize, Deserializer}, ser::{Error, Serialize, Serializer}, }; /// Serializes a Duration to an integer representing seconds. /// /// Will fail if integer i...
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/serde/duration/opt_secs.rs
crates/core/src/serde/duration/opt_secs.rs
//! De-/serialization functions for `Option<std::time::Duration>` objects //! represented as milliseconds. use std::time::Duration; use serde::{ de::{Deserialize, Deserializer}, ser::{Serialize, Serializer}, }; /// Serialize an `Option<Duration>`. /// /// Will fail if integer is greater than the maximum inte...
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/serde/canonical_json/value.rs
crates/core/src/serde/canonical_json/value.rs
use std::{collections::BTreeMap, fmt}; use as_variant::as_variant; use serde::{Deserialize, Serialize, de::Deserializer, ser::Serializer}; use serde_json::{Value as JsonValue, to_string as to_json_string}; use super::CanonicalJsonError; /// The inner type of `CanonicalJsonValue::Object`. pub type CanonicalJsonObject...
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/video.rs
crates/core/src/events/video.rs
//! Types for extensible video message events ([MSC3553]). //! //! [MSC3553]: https://github.com/matrix-org/matrix-spec-proposals/pull/3553 use std::time::Duration; use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::{ file::{CaptionContentBlock, FileConten...
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.rs
crates/core/src/events/rtc.rs
//! Modules for events in the `m.rtc` namespace. #[cfg(feature = "unstable-msc4310")] pub mod decline; #[cfg(feature = "unstable-msc4075")] pub mod notification;
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/direct.rs
crates/core/src/events/direct.rs
//! Types for the [`m.direct`] event. //! //! [`m.direct`]: https://spec.matrix.org/latest/client-server-api/#mdirect use std::{ collections::{BTreeMap, btree_map}, ops::{Deref, DerefMut}, }; use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{OwnedRoo...
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/beacon.rs
crates/core/src/events/beacon.rs
//! Types for the `org.matrix.msc3489.beacon` event, the unstable version of //! `m.beacon` ([MSC3489]). //! //! [MSC3489]: https://github.com/matrix-org/matrix-spec-proposals/pull/3489 use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{ OwnedEventId, Unix...
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/_custom.rs
crates/core/src/events/_custom.rs
use salvo::oapi::ToSchema; use serde::Serialize; use crate::{ events::{ EphemeralRoomEventContent, EphemeralRoomEventType, EventContentFromType, GlobalAccountDataEventContent, GlobalAccountDataEventType, MessageLikeEventContent, MessageLikeEventType, MessageLikeUnsigned, PossiblyRedactedSta...
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/beacon_info.rs
crates/core/src/events/beacon_info.rs
//! Types for the `org.matrix.msc3489.beacon_info` state event, the unstable //! version of `m.beacon_info` ([MSC3489]). //! //! [MSC3489]: https://github.com/matrix-org/matrix-spec-proposals/pull/3489 use std::time::{Duration, SystemTime}; use crate::macros::EventContent; use salvo::oapi::ToSchema; 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/events/key.rs
crates/core/src/events/key.rs
//! Modules for events in the `m.key` namespace. pub mod verification;
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/identity_server.rs
crates/core/src/events/identity_server.rs
//! Types for the [`m.identity_server`] event. //! //! [`m.identity_server`]: https://spec.matrix.org/latest/client-server-api/#mdirect use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; /// The content of an `m.identity_server` event. /// /// Persists the user's preferre...
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/state_key.rs
crates/core/src/events/state_key.rs
use salvo::oapi::ToSchema; use serde::{ Serialize, Serializer, de::{ Deserialize, Deserializer, Unexpected, {self}, }, }; /// A type that can be used as the `state_key` for event types where that field /// is always empty. #[derive(ToSchema, Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, O...
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.rs
crates/core/src/events/call.rs
//! Modules for events in the `m.call` namespace. //! //! This module also contains types shared by events in its child namespaces. pub mod answer; pub mod candidates; pub mod hangup; pub mod invite; #[cfg(feature = "unstable-msc3401")] pub mod member; pub mod negotiate; #[cfg(feature = "unstable-msc4075")] pub mod no...
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.rs
crates/core/src/events/room_key.rs
//! Types for the [`m.room_key`] event. //! //! [`m.room_key`]: https://spec.matrix.org/latest/client-server-api/#mroom_key pub mod withheld; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::macros::EventContent; use crate::{EventEncryptionAlgorithm, OwnedRoomId}; /// 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/image.rs
crates/core/src/events/image.rs
//! Types for extensible image message events ([MSC3552]). //! //! [MSC3552]: https://github.com/matrix-org/matrix-spec-proposals/pull/3552 use std::ops::Deref; use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::{ file::{CaptionContentBlock, EncryptedConte...
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/presence.rs
crates/core/src/events/presence.rs
//! A presence event is represented by a struct with a set content field. //! //! The only content valid for this event is `PresenceEventContent`. use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{OwnedMxcUri, OwnedUserId, presence::PresenceState}; /// Presence event. #[derive(ToSchema, Seri...
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/content.rs
crates/core/src/events/content.rs
use std::fmt; use serde::{Serialize, de::DeserializeOwned}; use crate::{ events::{ EphemeralRoomEventType, GlobalAccountDataEventType, MessageLikeEventType, RoomAccountDataEventType, StateEventType, ToDeviceEventType, }, serde::{CanBeEmpty, RawJson, RawJsonValue}, }; /// Extension trait f...
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.rs
crates/core/src/events/poll.rs
//! Modules for events in the `m.poll` namespace ([MSC3381]). //! //! This module also contains types shared by events in its child namespaces. //! //! [MSC3381]: https://github.com/matrix-org/matrix-spec-proposals/pull/3381 use std::{ collections::{BTreeMap, BTreeSet}, ops::Deref, }; use indexmap::IndexMap; ...
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_bundle.rs
crates/core/src/events/room_key_bundle.rs
//! Types for the `m.room_key_bundle` event defined in [MSC4268]. //! //! [MSC4268]: https://github.com/matrix-org/matrix-spec-proposals/pull/4268 use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::OwnedRoomId; use crate::events::room::EncryptedFile; use crate::macros::EventContent; /// The co...
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/relation.rs
crates/core/src/events/relation.rs
//! Types describing [relationships between events]. //! //! [relationships between events]: https://spec.matrix.org/latest/client-server-api/#forming-relationships-between-events use std::fmt::Debug; use salvo::oapi::ToSchema; use serde::{Deserialize, Deserializer, Serialize, de::DeserializeOwned}; use super::AnyMe...
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/do_not_disturb.rs
crates/core/src/events/do_not_disturb.rs
//! Types for the [`dm.filament.do_not_disturb`] event. //! //! [`dm.filament.do_not_disturb`]: https://github.com/matrix-org/matrix-spec-proposals/pull/4359 use std::collections::BTreeMap; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::OwnedRoomId; use crate::macros::EventContent; /// 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/events/encrypted.rs
crates/core/src/events/encrypted.rs
//! Types for extensible encrypted events ([MSC3956]). //! //! [MSC3956]: https://github.com/matrix-org/matrix-spec-proposals/pull/3956 use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::room::encrypted::{EncryptedEventScheme, Relation}; /// The payload for an...
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.rs
crates/core/src/events/policy.rs
//! Modules for events in the `m.policy` namespace. pub mod rule;
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/marked_unread.rs
crates/core/src/events/marked_unread.rs
//! Types for the [`m.marked_unread`] event. //! //! [`m.marked_unread`]: https://spec.matrix.org/latest/client-server-api/#unread-markers use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; /// The content of an `m.marked_unread` event. /// /// Whether the room has been e...
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/push_rules.rs
crates/core/src/events/push_rules.rs
//! Types for the [`m.push_rules`] event. //! //! [`m.push_rules`]: https://spec.matrix.org/latest/client-server-api/#mpush_rules use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::push::Ruleset; /// The content of an `m.push_rules` event. /// /// Describes al...
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/unsigned.rs
crates/core/src/events/unsigned.rs
use salvo::oapi::ToSchema; use serde::{Deserialize, de::DeserializeOwned}; use super::{ MessageLikeEventContent, OriginalSyncMessageLikeEvent, PossiblyRedactedStateEventContent, relation::{BundledMessageLikeRelations, BundledStateRelations}, room::redaction::RoomRedactionEventContent, }; use crate::{OwnedE...
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/pdu.rs
crates/core/src/events/pdu.rs
//! Types for persistent data unit schemas //! //! The differences between the `RoomV1Pdu` schema and the `RoomV3Pdu` schema are that the //! `RoomV1Pdu` takes an `event_id` field (`RoomV3Pdu` does not), and `auth_events` and //! `prev_events` take `Vec<(OwnedEventId, EventHash)>` rather than `Vec<OwnedEventId>` in //!...
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/enums.rs
crates/core/src/events/enums.rs
use crate::macros::{EventEnumFromEvent, event_enum}; use salvo::prelude::*; use serde::{Deserialize, de}; use super::room::encrypted; use crate::{ UnixMillis, identifiers::*, serde::{RawJsonValue, from_raw_json_value}, }; /// Event types that servers should send as [stripped state] to help clients /// ide...
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/forwarded_room_key.rs
crates/core/src/events/forwarded_room_key.rs
//! Types for the [`m.forwarded_room_key`] event. //! //! [`m.forwarded_room_key`]: https://spec.matrix.org/latest/client-server-api/#mforwarded_room_key use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{EventEncryptionAlgorithm, OwnedRoomId}; /// 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/receipt.rs
crates/core/src/events/receipt.rs
//! Endpoints for event receipts. //! `POST /_matrix/client/*/rooms/{room_id}/receipt/{receiptType}/{event_id}` //! //! Send a receipt event to a room. //! `/v3/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3roomsroomidreceiptreceipttypeeventid use std::{ collections...
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/file.rs
crates/core/src/events/file.rs
//! Types for extensible file message events ([MSC3551]). //! //! [MSC3551]: https://github.com/matrix-org/matrix-spec-proposals/pull/3551 use std::collections::BTreeMap; use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::{ message::TextContentBlock, r...
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_request.rs
crates/core/src/events/room_key_request.rs
//! Types for the [`m.room_key_request`] event. //! //! [`m.room_key_request`]: https://spec.matrix.org/latest/client-server-api/#mroom_key_request use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{ EventEncryptionAlgorithm, OwnedDeviceId, OwnedRoomId, Ow...
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.rs
crates/core/src/events/secret.rs
//! Module for events in the `m.secret` namespace. pub mod request; pub mod send;
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/ignored_user_list.rs
crates/core/src/events/ignored_user_list.rs
//! Types for the [`m.ignored_user_list`] event. //! //! [`m.ignored_user_list`]: https://spec.matrix.org/latest/client-server-api/#mignored_user_list use std::collections::BTreeMap; use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::OwnedUserId; /// The cont...
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/media_preview_config.rs
crates/core/src/events/media_preview_config.rs
//! Types for the [`m.media_preview_config`] event. //! //! [`m.media_preview_config`]: https://github.com/matrix-org/matrix-spec-proposals/pull/4278 use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::macros::StringEnum; use crate::serde::JsonCastable; use crate::{PrivOwnedStr, macros::EventCon...
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/invite_permission_config.rs
crates/core/src/events/invite_permission_config.rs
//! Types for the [`m.invite_permission_config`] account data event. //! //! [`m.invite_permission_config`]: https://github.com/matrix-org/matrix-spec-proposals/pull/4380 use serde::{Deserialize, Serialize}; use salvo::oapi::ToSchema; use crate::macros::EventContent; /// The content of an `m.invite_permission_config...
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/dummy.rs
crates/core/src/events/dummy.rs
//! Types for the [`m.dummy`] event. //! //! [`m.dummy`]: https://spec.matrix.org/latest/client-server-api/#mdummy use std::fmt; use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{ de::{self, Deserialize, Deserializer}, ser::{Serialize, SerializeStruct as _, Serializer}, }; /// The conte...
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/fully_read.rs
crates/core/src/events/fully_read.rs
//! Types for the [`m.fully_read`] event. //! //! [`m.fully_read`]: https://spec.matrix.org/latest/client-server-api/#mfully_read use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::OwnedEventId; /// The content of an `m.fully_read` event. /// /// The current l...
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.rs
crates/core/src/events/secret_storage.rs
//! Module for events in the `m.secret_storage` namespace. pub mod default_key; pub mod key; pub mod secret;
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/typing.rs
crates/core/src/events/typing.rs
//! Types for the [`m.typing`] event. //! //! [`m.typing`]: https://spec.matrix.org/latest/client-server-api/#mtyping use crate::macros::EventContent; use salvo::prelude::*; use serde::{Deserialize, Serialize}; use crate::{OwnedRoomId, OwnedUserId}; /// The content of an `m.typing` event. /// /// Informs the client ...
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/location.rs
crates/core/src/events/location.rs
//! Types for extensible location message events ([MSC3488]). //! //! [MSC3488]: https://github.com/matrix-org/matrix-spec-proposals/pull/3488 use crate::macros::{EventContent, StringEnum}; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::{message::TextContentBlock, room::message::Relation};...
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/kinds.rs
crates/core/src/events/kinds.rs
#![allow(clippy::exhaustive_structs)] use crate::macros::Event; use as_variant::as_variant; use salvo::oapi::ToSchema; use serde::{Deserialize, Deserializer, Serialize, ser::SerializeStruct}; use super::{ AnyInitialStateEvent, EmptyStateKey, EphemeralRoomEventContent, EventContentFromType, GlobalAccountDataEv...
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/voice.rs
crates/core/src/events/voice.rs
//! Types for voice message events ([MSC3245]). //! //! [MSC3245]: https://github.com/matrix-org/matrix-spec-proposals/pull/3245 use std::time::Duration; use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::events::{ audio::Amplitude, file::FileContentBlock,...
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.rs
crates/core/src/events/space.rs
//! Types for the `m.space` events. //! //! See [the specification](https://spec.matrix.org/latest/client-server-api/#spaces). pub mod child; pub mod parent;
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/tag.rs
crates/core/src/events/tag.rs
//! Types for the [`m.tag`] event. //! //! [`m.tag`]: https://spec.matrix.org/latest/client-server-api/#mtag use std::{collections::BTreeMap, error::Error, fmt, str::FromStr}; use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{PrivOwnedStr, serde::deserialize...
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.rs
crates/core/src/events/audio.rs
//! Types for extensible audio message events ([MSC3927]). //! //! [MSC3927]: https://github.com/matrix-org/matrix-spec-proposals/pull/3927 use std::time::Duration; use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; mod amplitude_serde; use super::{ file::{CaptionCo...
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.rs
crates/core/src/events/message.rs
//! Types for extensible text message events ([MSC1767]). //! //! # Extensible events //! //! [MSC1767] defines a new structure for events that is made of two parts: a //! type and zero or more reusable content blocks. //! //! This allows to construct new event types from a list of known content blocks //! that allows ...
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/emote.rs
crates/core/src/events/emote.rs
//! Types for extensible emote message events ([MSC3954]). //! //! [MSC3954]: https://github.com/matrix-org/matrix-spec-proposals/pull/3954 use salvo::prelude::*; use serde::{Deserialize, Serialize}; use super::{message::TextContentBlock, room::message::Relation}; use crate::macros::EventContent; /// The payload for...
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/image_pack.rs
crates/core/src/events/image_pack.rs
//! Types for image packs in Matrix ([MSC2545]). //! //! [MSC2545]: https://github.com/matrix-org/matrix-spec-proposals/pull/2545 use std::collections::{BTreeMap, BTreeSet}; use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::events::room::ImageInfo; use crate:...
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.rs
crates/core/src/events/room.rs
//! Modules for events in the `m.room` namespace. //! //! This module also contains types shared by events in its child namespaces. use std::collections::BTreeMap; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize, de}; use crate::{ OwnedMxcUri, serde::{Base64, base64::UrlSafe}, }; pub mod alias...
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/sticker.rs
crates/core/src/events/sticker.rs
//! Types for the [`m.sticker`] event. //! //! [`m.sticker`]: https://spec.matrix.org/latest/client-server-api/#msticker use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{OwnedMxcUri, events::room::ImageInfo}; /// The content of an `m.sticker` event. /// ///...
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/reaction.rs
crates/core/src/events/reaction.rs
//! Types for the [`m.reaction`] event. //! //! [`m.reaction`]: https://spec.matrix.org/latest/client-server-api/#mreaction use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::relation::Annotation; /// The payload for a `m.reaction` event. /// /// A reaction to...
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_order.rs
crates/core/src/events/space_order.rs
//! Types for the [`m.space_order`] event. //! //! [`m.space_order`]: https://github.com/matrix-org/matrix-spec-proposals/pull/3230 use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::OwnedSpaceChildOrder; use crate::macros::EventContent; /// The content of an `m.space_order` event. /// /// Wh...
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/member_hints.rs
crates/core/src/events/member_hints.rs
//! Types for Matrix member hint state events ([MSC4171]). //! //! This implements `m.member_hints` state event described in [MSC4171]. //! //! [MSC4171]: https://github.com/matrix-org/matrix-spec-proposals/pull/4171 use std::collections::BTreeSet; use crate::macros::EventContent; use salvo::oapi::ToSchema; 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/events/room/third_party_invite.rs
crates/core/src/events/room/third_party_invite.rs
//! Types for the [`m.room.third_party_invite`] event. //! //! [`m.room.third_party_invite`]: https://spec.matrix.org/latest/client-server-api/#mroomthird_party_invite use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::macros::EventContent; use crate::serde::Base64; use crate::third_party_invit...
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/avatar.rs
crates/core/src/events/room/avatar.rs
//! Types for the [`m.room.avatar`] event. //! //! [`m.room.avatar`]: https://spec.matrix.org/latest/client-server-api/#mroomavatar use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::ThumbnailInfo; use crate::{OwnedMxcUri, events::EmptyStateKey}; /// The conte...
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/history_visibility.rs
crates/core/src/events/room/history_visibility.rs
//! Types for the [`m.room.history_visibility`] event. //! //! [`m.room.history_visibility`]: https://spec.matrix.org/latest/client-server-api/#mroomhistory_visibility use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{PrivOwnedStr, events::EmptyStateKey, 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/events/room/power_levels.rs
crates/core/src/events/room/power_levels.rs
//! Types for the [`m.room.power_levels`] event. //! //! [`m.room.power_levels`]: https://spec.matrix.org/latest/client-server-api/#mroompower_levels use std::{ cmp::{Ordering, max}, collections::BTreeMap, }; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::events::{ EmptyStateK...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
true
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/room/join_rule.rs
crates/core/src/events/room/join_rule.rs
//! Types for the [`m.room.join_rules`] event. //! //! [`m.room.join_rules`]: https://spec.matrix.org/latest/client-server-api/#mroomjoin_rules use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize, de::Deserializer}; use crate::macros::EventContent; use crate::{ events::EmptyStateKey, room::{AllowRule...
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/pinned_events.rs
crates/core/src/events/room/pinned_events.rs
//! Types for the [`m.room.pinned_events`] event. //! //! [`m.room.pinned_events`]: https://spec.matrix.org/latest/client-server-api/#mroompinned_events use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{OwnedEventId, events::EmptyStateKey}; /// The content o...
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/thumbnail_source_serde.rs
crates/core/src/events/room/thumbnail_source_serde.rs
//! De-/serialization functions for `Option<MediaSource>` objects representing a //! thumbnail source. use serde::{ Deserialize, Deserializer, ser::{SerializeStruct, Serializer}, }; use super::{EncryptedFile, MediaSource}; use crate::OwnedMxcUri; /// Serializes a MediaSource to a thumbnail source. pub(crate)...
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/encrypted.rs
crates/core/src/events/room/encrypted.rs
//! Types for the [`m.room.encrypted`] event. //! //! [`m.room.encrypted`]: https://spec.matrix.org/latest/client-server-api/#mroomencrypted use std::{borrow::Cow, collections::BTreeMap}; use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::message; use crate::{...
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/encryption.rs
crates/core/src/events/room/encryption.rs
//! Types for the [`m.room.encryption`] event. //! //! [`m.room.encryption`]: https://spec.matrix.org/latest/client-server-api/#mroomencryption use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::events::{EmptyStateKey, EventEncryptionAlgorithm}; /// 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/room/canonical_alias.rs
crates/core/src/events/room/canonical_alias.rs
//! Types for the [`m.room.canonical_alias`] event. //! //! [`m.room.canonical_alias`]: https://spec.matrix.org/latest/client-server-api/#mroomcanonical_alias use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{OwnedRoomAliasId, events::EmptyStateKey}; /// The...
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/tombstone.rs
crates/core/src/events/room/tombstone.rs
//! Types for the [`m.room.tombstone`] event. //! //! [`m.room.tombstone`]: https://spec.matrix.org/latest/client-server-api/#mroomtombstone use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{ OwnedRoomId, events::{ EmptyStateKey, PossiblyRedac...
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/name.rs
crates/core/src/events/room/name.rs
//! Types for the [`m.room.name`] event. //! //! [`m.room.name`]: https://spec.matrix.org/latest/client-server-api/#mroomname use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::events::EmptyStateKey; /// The content of an `m.room.name` event. /// /// The 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/events/room/server_acl.rs
crates/core/src/events/room/server_acl.rs
//! Types for the [`m.room.server_acl`] event. //! //! [`m.room.server_acl`]: https://spec.matrix.org/latest/client-server-api/#mroomserver_acl use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use wildmatch::WildMatch; use crate::{ServerName, events::EmptyStateKey}; //...
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/member.rs
crates/core/src/events/room/member.rs
//! Types for the [`m.room.member`] event. //! //! [`m.room.member`]: https://spec.matrix.org/latest/client-server-api/#mroommember use std::collections::BTreeMap; use salvo::oapi::ToSchema; use serde::{Deserialize, Deserializer, Serialize}; use crate::macros::EventContent; use crate::serde::JsonValue; use crate::{ ...
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/topic.rs
crates/core/src/events/room/topic.rs
//! Types for the [`m.room.topic`] event. //! //! [`m.room.topic`]: https://spec.matrix.org/latest/client-server-api/#mroomtopic use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::events::EmptyStateKey; use crate::events::message::TextContentBlock; use crate::macros::EventContent; /// The con...
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.rs
crates/core/src/events/room/message.rs
//! Types for the [`m.room.message`] event. //! //! [`m.room.message`]: https://spec.matrix.org/latest/client-server-api/#mroommessage use std::borrow::Cow; use crate::macros::EventContent; use as_variant::as_variant; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize, de::DeserializeOwned}; use serde_json...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
true
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/events/room/aliases.rs
crates/core/src/events/room/aliases.rs
//! Types for the `m.room.aliases` event. use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{ OwnedRoomAliasId, OwnedServerName, events::{RedactContent, RedactedStateEventContent, StateEventType, StaticEventContent}, room_version_rules::RedactionRu...
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/redaction.rs
crates/core/src/events/room/redaction.rs
//! Types for the [`m.room.redaction`] event. //! //! [`m.room.redaction`]: https://spec.matrix.org/latest/client-server-api/#mroomredaction use crate::macros::{Event, EventContent}; use as_variant::as_variant; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::room_version_rules::RedactionRul...
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/create.rs
crates/core/src/events/room/create.rs
//! Types for the [`m.room.create`] event. //! //! [`m.room.create`]: https://spec.matrix.org/latest/client-server-api/#mroomcreate use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::room_version_rules::RedactionRules; use crate::{ OwnedRoomId, OwnedUserId,...
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/guest_access.rs
crates/core/src/events/room/guest_access.rs
//! Types for the [`m.room.guest_access`] event. //! //! [`m.room.guest_access`]: https://spec.matrix.org/latest/client-server-api/#mroomguest_access use crate::macros::EventContent; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{PrivOwnedStr, events::EmptyStateKey, serde::StringEnum}; /...
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/encrypted/unstable_state.rs
crates/core/src/events/room/encrypted/unstable_state.rs
//! Types for `m.room.encrypted` state events, as defined in [MSC4362][msc]. //! //! [msc]: https://github.com/matrix-org/matrix-spec-proposals/pull/4362 use palpo_core_macros::EventContent; use serde::{Deserialize, Serialize};use salvo::oapi::ToSchema; use crate::events::{PossiblyRedactedStateEventContent, StateEvent...
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/encrypted/relation_serde.rs
crates/core/src/events/room/encrypted/relation_serde.rs
use serde::{Deserialize, Deserializer, Serialize, ser::SerializeStruct}; use super::{InReplyTo, Relation, Thread}; use crate::{ OwnedEventId, serde::{JsonObject, JsonValue, RawJsonValue, from_raw_json_value}, }; impl<'de> Deserialize<'de> for Relation { fn deserialize<D>(deserializer: D) -> Result<Self, 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/events/room/member/change.rs
crates/core/src/events/room/member/change.rs
use super::MembershipState; use crate::{MxcUri, UserId}; /// The details of a member event required to calculate a [`MembershipChange`]. #[derive(Clone, Debug)] pub struct MembershipDetails<'a> { pub(crate) avatar_url: Option<&'a MxcUri>, pub(crate) display_name: Option<&'a str>, pub(crate) membership: &'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/room/redaction/event_serde.rs
crates/core/src/events/room/redaction/event_serde.rs
use serde::{Deserialize, Deserializer, de}; use super::{ OriginalRoomRedactionEvent, OriginalSyncRoomRedactionEvent, RoomRedactionEvent, RoomRedactionEventContent, RoomRedactionUnsigned, SyncRoomRedactionEvent, }; use crate::{ OwnedEventId, OwnedRoomId, OwnedUserId, UnixMillis, events::RedactionDeHelpe...
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/video.rs
crates/core/src/events/room/message/video.rs
use std::time::Duration; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{ OwnedMxcUri, events::room::{EncryptedFile, MediaSource, ThumbnailInfo}, }; /// The payload for a video message. #[derive(ToSchema, Deserialize, Serialize, Clone, Debug)] #[serde(tag = "msgtype", rename = "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/room/message/url_preview.rs
crates/core/src/events/room/message/url_preview.rs
use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::events::room::{EncryptedFile, OwnedMxcUri}; /// The Source of the PreviewImage. #[derive(ToSchema, Clone, Debug, Deserialize, Serialize)] #[allow(clippy::exhaustive_enums)] pub enum PreviewImageSource { /// Source of the PreviewImage as en...
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/content_serde.rs
crates/core/src/events/room/message/content_serde.rs
//! `Deserialize` implementation for RoomMessageEventContent and MessageType. use serde::{Deserialize, de}; use super::{ MessageType, RoomMessageEventContent, RoomMessageEventContentWithoutRelation, relation_serde::deserialize_relation, }; use crate::{ events::Mentions, serde::{RawJsonValue, from_raw_...
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/image.rs
crates/core/src/events/room/message/image.rs
use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{ OwnedMxcUri, events::room::{EncryptedFile, ImageInfo, MediaSource}, }; /// The payload for an image message. #[derive(ToSchema, Deserialize, Serialize, Clone, Debug)] #[serde(tag = "msgtype", rename = "m.image")] pub struct ImageMess...
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/relation.rs
crates/core/src/events/room/message/relation.rs
use std::borrow::Cow; use salvo::oapi::ToSchema; use serde::Deserialize; use crate::{ events::relation::{CustomRelation, InReplyTo, RelationType, Replacement, Thread}, serde::JsonObject, }; /// Message event relationship. #[derive(ToSchema, Deserialize, Clone, Debug)] #[allow(clippy::manual_non_exhaustive)] ...
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/key_verification_request.rs
crates/core/src/events/room/message/key_verification_request.rs
use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::FormattedBody; use crate::{OwnedDeviceId, OwnedUserId, events::key::verification::VerificationMethod}; /// The payload for a key verification request message. #[derive(ToSchema, Deserialize, Serialize, Clone, Debug)] #[serde(tag = "msgtype", r...
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/sanitize.rs
crates/core/src/events/room/message/sanitize.rs
//! Convenience methods and types to sanitize text messages. /// Remove the [rich reply fallback] of the given plain text string. /// /// [rich reply fallback]: https://spec.matrix.org/latest/client-server-api/#fallbacks-for-rich-replies pub fn remove_plain_reply_fallback(mut s: &str) -> &str { if !s.starts_with("...
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/text.rs
crates/core/src/events/room/message/text.rs
use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use super::FormattedBody; /// The payload for a text message. #[derive(ToSchema, Deserialize, Serialize, Clone, Debug)] #[serde(tag = "msgtype", rename = "m.text")] pub struct TextMessageEventContent { /// The body of the message. pub body: Strin...
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/file.rs
crates/core/src/events/room/message/file.rs
use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{ OwnedMxcUri, events::room::{EncryptedFile, MediaSource, ThumbnailInfo}, }; /// The payload for a file message. #[derive(ToSchema, Deserialize, Serialize, Clone, Debug)] #[serde(tag = "msgtype", rename = "m.file")] pub struct FileMess...
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/server_notice.rs
crates/core/src/events/room/message/server_notice.rs
use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{PrivOwnedStr, serde::StringEnum}; /// The payload for a server notice message. #[derive(ToSchema, Deserialize, Serialize, Clone, Debug)] #[serde(tag = "msgtype", rename = "m.server_notice")] pub struct ServerNoticeMessageEventContent { //...
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/relation_serde.rs
crates/core/src/events/room/message/relation_serde.rs
use serde::{Deserialize, Deserializer, Serialize, de}; use serde_json::Value as JsonValue; use super::{InReplyTo, Relation, RelationWithoutReplacement, Replacement, Thread}; use crate::{OwnedEventId, events::relation::CustomRelation, serde::JsonObject}; /// Deserialize an event's `relates_to` field. /// /// Use it li...
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/location.rs
crates/core/src/events/room/message/location.rs
use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::events::room::{MediaSource, ThumbnailInfo}; #[cfg(feature = "unstable-msc3488")] use crate::{ UnixMillis, events::location::{AssetContent, AssetType, LocationContent}, events::message::{TextContentBlock, TextRepresentation}, }; ///...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false