pub struct Margins {
pub top: Option<i32>,
pub right: Option<u32>,
pub bottom: Option<i32>,
pub left: Option<u32>,
pub header: Option<u32>,
pub footer: Option<u32>,
}Expand description
Page margins in twentieths of a point; fields not given keep the section’s. Top and bottom may be negative, as in Word: text then ignores the header or footer.
Fields§
§top: Option<i32>Top margin in twentieths of a point.
right: Option<u32>Right margin in twentieths of a point.
bottom: Option<i32>Bottom margin in twentieths of a point.
left: Option<u32>Left margin in twentieths of a point.
header: Option<u32>Distance from the page top to the header, in twentieths of a point.
Distance from the page bottom to the footer, in twentieths of a point.
Trait Implementations§
impl Copy for Margins
Source§impl<'de> Deserialize<'de> for Margins
impl<'de> Deserialize<'de> for Margins
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Margins, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Margins, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Margins
Source§impl JsonSchema for Margins
impl JsonSchema for Margins
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for Margins
impl Serialize for Margins
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Margins
Auto Trait Implementations§
impl Forget for Margins
impl Freeze for Margins
impl Move for Margins
impl RefUnwindSafe for Margins
impl Send for Margins
impl Sync for Margins
impl Unpin for Margins
impl UnsafeUnpin for Margins
impl UnwindSafe for Margins
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.