pub struct XNode {
pub id: String,
pub x: f64,
pub y: f64,
pub w: Option<f64>,
pub h: Option<f64>,
pub handle: String,
pub body: String,
pub media: Vec<File>,
pub quoted_id: Option<String>,
pub extra_paths: Vec<ExtraPath>,
pub wire_path: Option<String>,
pub wire_mime: Option<String>,
}Fields§
§id: String§x: f64§y: f64§w: Option<f64>§h: Option<f64>§handle: String§body: String§media: Vec<File>§quoted_id: Option<String>§extra_paths: Vec<ExtraPath>§wire_path: Option<String>§wire_mime: Option<String>Implementations§
Source§impl XNode
impl XNode
pub fn new(id: &str, x: f64, y: f64, handle: &str, body: &str) -> XNode
pub fn is_post(&self) -> bool
pub fn is_repost(&self) -> bool
pub fn is_quote(&self) -> bool
pub fn clone(&self) -> XNode
pub fn to_json(&self) -> GraphNodeWire
pub fn from_json(json: &GraphNodeWire, files: Option<FileOrFiles>) -> XNode
Trait Implementations§
Auto Trait Implementations§
impl Forget for XNode
impl Freeze for XNodewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<File>: Freeze,
PhantomData<ExtraPath>: Freeze,
impl Move for XNode
impl RefUnwindSafe for XNode
impl Send for XNode
impl Sync for XNode
impl Unpin for XNode
impl UnsafeUnpin for XNodewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<File>: UnsafeUnpin,
PhantomData<ExtraPath>: UnsafeUnpin,
impl UnwindSafe for XNode
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