Skip to main content

DefaultPathInput

Trait DefaultPathInput 

Source
pub trait DefaultPathInput<T: PathBuilder> {
    // Required method
    fn get_default<'a>() -> T::Input<'a>;
}
Expand description

Allows us to pick a version for sending simple ruma requests

In the SerializingRumaRequestWrapper we don’t actually care about endpoint versioning, since the request is only serialized and deserialized locally. Therefore, this just always picks V1_16.

NOTE: A second implementation is also in crates/libs/arminius-lib-testing/src/utils::ruma.rs, but due to dependency resolution problems, they cannot depend on one another.

Required Methods§

Source

fn get_default<'a>() -> T::Input<'a>

Get a default input to the path builder

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl DefaultPathInput<SinglePath> for SinglePath

Source§

fn get_default<'a>() -> <SinglePath as PathBuilder>::Input<'a>

Source§

impl DefaultPathInput<VersionHistory> for VersionHistory

Source§

fn get_default<'a>() -> <VersionHistory as PathBuilder>::Input<'a>

Implementors§