pub struct RefDetails { /* private fields */ }
Implementations§
Source§impl RefDetails
impl RefDetails
pub fn can_generate_internal_link(&self) -> bool
pub fn generate_internal_link(&self, include_preview: bool) -> Result<String>
pub async fn generate_external_link(&self) -> Result<String>
Methods from Deref<Target = CoreRefDetails>§
pub fn type_str(&self) -> String
pub fn embed_action_str(&self) -> String
pub fn target_id_str(&self) -> Option<String>
pub fn room_id_str(&self) -> Option<String>
pub fn via_servers(&self) -> Vec<String>
pub fn task_list_id_str(&self) -> Option<String>
pub fn title(&self) -> Option<String>
pub fn uri(&self) -> Option<String>
pub fn room_display_name(&self) -> Option<String>
pub fn participants(&self) -> Option<u32>
pub fn utc_start(&self) -> Option<DateTime<Utc>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RefDetails
impl !RefUnwindSafe for RefDetails
impl Send for RefDetails
impl Sync for RefDetails
impl Unpin for RefDetails
impl !UnwindSafe for RefDetails
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more