#[non_exhaustive]#[repr(u8)]pub enum PageNumberPosition {
None = 0,
TopLeft = 1,
TopCenter = 2,
TopRight = 3,
BottomLeft = 4,
BottomCenter = 5,
BottomRight = 6,
OutsideTop = 7,
OutsideBottom = 8,
InsideTop = 9,
InsideBottom = 10,
}Expand description
Position of page numbers on the page.
§Examples
use hwpforge_foundation::PageNumberPosition;
assert_eq!(PageNumberPosition::default(), PageNumberPosition::TopCenter);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None = 0
No page number.
TopLeft = 1
Top left.
TopCenter = 2
Top center (default).
TopRight = 3
Top right.
BottomLeft = 4
Bottom left.
BottomCenter = 5
Bottom center.
BottomRight = 6
Bottom right.
OutsideTop = 7
Outside top.
OutsideBottom = 8
Outside bottom.
InsideTop = 9
Inside top.
InsideBottom = 10
Inside bottom.
Trait Implementations§
Source§impl Clone for PageNumberPosition
impl Clone for PageNumberPosition
Source§fn clone(&self) -> PageNumberPosition
fn clone(&self) -> PageNumberPosition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PageNumberPosition
impl Debug for PageNumberPosition
Source§impl Default for PageNumberPosition
impl Default for PageNumberPosition
Source§fn default() -> PageNumberPosition
fn default() -> PageNumberPosition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PageNumberPosition
impl<'de> Deserialize<'de> for PageNumberPosition
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
Source§impl Display for PageNumberPosition
impl Display for PageNumberPosition
Source§impl FromStr for PageNumberPosition
impl FromStr for PageNumberPosition
Source§impl Hash for PageNumberPosition
impl Hash for PageNumberPosition
Source§impl JsonSchema for PageNumberPosition
impl JsonSchema for PageNumberPosition
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§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 PartialEq for PageNumberPosition
impl PartialEq for PageNumberPosition
Source§impl Serialize for PageNumberPosition
impl Serialize for PageNumberPosition
Source§impl TryFrom<u8> for PageNumberPosition
impl TryFrom<u8> for PageNumberPosition
impl Copy for PageNumberPosition
impl Eq for PageNumberPosition
impl StructuralPartialEq for PageNumberPosition
Auto Trait Implementations§
impl Freeze for PageNumberPosition
impl RefUnwindSafe for PageNumberPosition
impl Send for PageNumberPosition
impl Sync for PageNumberPosition
impl Unpin for PageNumberPosition
impl UnwindSafe for PageNumberPosition
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.