pub struct TextPayload { /* private fields */ }
Implementations§
Source§impl TextPayload
impl TextPayload
pub fn from_static(text: &'static str) -> Self
pub fn from_string<T: Into<String>>(text: T) -> Self
pub fn text(&self) -> &str
Trait Implementations§
Source§impl Debug for TextPayload
impl Debug for TextPayload
Source§impl PartialEq for TextPayload
impl PartialEq for TextPayload
Source§impl RecordPayload for TextPayload
impl RecordPayload for TextPayload
Source§impl TryFrom<&NdefRecord> for TextPayload
impl TryFrom<&NdefRecord> for TextPayload
impl StructuralPartialEq for TextPayload
Auto Trait Implementations§
impl Freeze for TextPayload
impl RefUnwindSafe for TextPayload
impl Send for TextPayload
impl Sync for TextPayload
impl Unpin for TextPayload
impl UnwindSafe for TextPayload
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