Trait matrix_appservice_rs::Mappable [−][src]
pub trait Mappable { type MatrixType: Clone + Eq + Hash; type ExternalType: Clone + Eq + Hash; fn as_matrix(&self) -> &Self::MatrixType; fn into_matrix(self) -> Self::MatrixType; fn as_external(&self) -> &Self::ExternalType; fn into_external(self) -> Self::ExternalType; fn into_split(self) -> (Self::MatrixType, Self::ExternalType); }
Expand description
Represents an object that has both a Matrix ID and an external ID.
Associated Types
type MatrixType: Clone + Eq + Hash
[src]
type MatrixType: Clone + Eq + Hash
[src]type ExternalType: Clone + Eq + Hash
[src]
type ExternalType: Clone + Eq + Hash
[src]Required methods
fn as_matrix(&self) -> &Self::MatrixType
[src]
fn as_matrix(&self) -> &Self::MatrixType
[src]Get a reference to the Matrix ID of this object.
fn into_matrix(self) -> Self::MatrixType
[src]
fn into_matrix(self) -> Self::MatrixType
[src]Convert this object into an owned Matrix ID of this object.
fn as_external(&self) -> &Self::ExternalType
[src]
fn as_external(&self) -> &Self::ExternalType
[src]Get a reference to the external ID of this object.
fn into_external(self) -> Self::ExternalType
[src]
fn into_external(self) -> Self::ExternalType
[src]Convert this object into an owned external ID of this object.
fn into_split(self) -> (Self::MatrixType, Self::ExternalType)
[src]
fn into_split(self) -> (Self::MatrixType, Self::ExternalType)
[src]Split this object into owned matrix type and external type.