pub struct Pidf {
pub entity: String,
pub tuples: Vec<Tuple>,
}Expand description
A presence document (RFC 3863).
A typed document rather than a string template, which is what the story asked for and what stops a caller producing something unparseable by concatenation.
Fields§
§entity: StringWhose presence this is.
tuples: Vec<Tuple>The ways of reaching them.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Pidf
Auto Trait Implementations§
impl Freeze for Pidf
impl RefUnwindSafe for Pidf
impl Send for Pidf
impl Sync for Pidf
impl Unpin for Pidf
impl UnsafeUnpin for Pidf
impl UnwindSafe for Pidf
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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