pub struct HandwrittenMessage {
pub id: String,
pub created_at: i64,
pub height: u16,
pub width: u16,
pub strokes: Vec<Vec<Point>>,
}Expand description
Parser for handwritten iMessages.
This message type is not documented by Apple, but represents messages displayed as
com.apple.Handwriting.HandwritingProvider.
Fields§
§id: StringUnique identifier for the handwritten message.
created_at: i64Timestamp for when the handwritten message was created, stored as a unix timestamp with an epoch of 2001-01-01 00:00:00 in the local time zone.
height: u16Render height in pixels.
width: u16Render width in pixels.
strokes: Vec<Vec<Point>>Strokes that make up the handwritten image.
Implementations§
Source§impl HandwrittenMessage
impl HandwrittenMessage
Sourcepub fn from_payload(payload: &[u8]) -> Result<Self, HandwritingError>
pub fn from_payload(payload: &[u8]) -> Result<Self, HandwritingError>
Converts a raw byte payload from the database into a HandwrittenMessage.
Sourcepub fn render_svg(&self) -> String
pub fn render_svg(&self) -> String
Render the handwriting message as SVG.
Sourcepub fn render_ascii(&self, max_height: usize) -> String
pub fn render_ascii(&self, max_height: usize) -> String
Render the handwriting message as ASCII with a maximum height.
Trait Implementations§
Source§impl Debug for HandwrittenMessage
impl Debug for HandwrittenMessage
impl Eq for HandwrittenMessage
Source§impl PartialEq for HandwrittenMessage
impl PartialEq for HandwrittenMessage
impl StructuralPartialEq for HandwrittenMessage
Auto Trait Implementations§
impl Freeze for HandwrittenMessage
impl RefUnwindSafe for HandwrittenMessage
impl Send for HandwrittenMessage
impl Sync for HandwrittenMessage
impl Unpin for HandwrittenMessage
impl UnsafeUnpin for HandwrittenMessage
impl UnwindSafe for HandwrittenMessage
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.