pub struct XlsBlock {
pub page: String,
pub top: i32,
pub bottom: i32,
pub left: i32,
pub right: i32,
pub style_refer_block: Option<Box<XlsBlock>>,
pub value: Value,
pub properties: BTreeMap<String, Value>,
}Fields§
§page: String§top: i32§bottom: i32§left: i32§right: i32§style_refer_block: Option<Box<XlsBlock>>§value: Value§properties: BTreeMap<String, Value>Implementations§
Source§impl XlsBlock
impl XlsBlock
pub fn new( page: impl Into<String>, x: i32, y: i32, value: impl Into<Value>, ) -> Self
pub fn from_context( context: &XlsBlockBuildContext, value: impl Into<Value>, ) -> Self
pub fn region(self, left: i32, top: i32, right: i32, bottom: i32) -> Self
pub fn span(self, width: i32, height: i32) -> Self
pub fn value(self, value: impl Into<Value>) -> Self
pub fn add_property( self, name: impl Into<String>, value: impl Into<Value>, ) -> Self
pub fn set_property(&mut self, name: impl Into<String>, value: impl Into<Value>)
pub fn style(self, style: XlsBlock) -> Self
pub fn width(&self) -> i32
pub fn height(&self) -> i32
pub fn contains(&self, x: i32, y: i32) -> bool
pub fn to_json_value(&self) -> Value
Trait Implementations§
Source§impl<'de> Deserialize<'de> for XlsBlock
impl<'de> Deserialize<'de> for XlsBlock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for XlsBlock
Auto Trait Implementations§
impl Freeze for XlsBlock
impl RefUnwindSafe for XlsBlock
impl Send for XlsBlock
impl Sync for XlsBlock
impl Unpin for XlsBlock
impl UnsafeUnpin for XlsBlock
impl UnwindSafe for XlsBlock
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