#[non_exhaustive]pub enum PositionOneof {
SortOrder(i32),
RelativePosition(Position),
}Expand description
Required. The new position of the section.
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.
SortOrder(i32)
Optional. The absolute position of the section in the list of sections. The position must be greater than 0. If the position is greater than the number of sections, the section will be appended to the end of the list. This operation inserts the section at the given position and shifts the original section at that position, and those below it, to the next position.
RelativePosition(Position)
Optional. The relative position of the section in the list of sections.
Trait Implementations§
Source§impl Clone for PositionOneof
impl Clone for PositionOneof
Source§fn clone(&self) -> PositionOneof
fn clone(&self) -> PositionOneof
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PositionOneof
impl Debug for PositionOneof
Source§impl PartialEq for PositionOneof
impl PartialEq for PositionOneof
impl StructuralPartialEq for PositionOneof
Auto Trait Implementations§
impl Freeze for PositionOneof
impl RefUnwindSafe for PositionOneof
impl Send for PositionOneof
impl Sync for PositionOneof
impl Unpin for PositionOneof
impl UnsafeUnpin for PositionOneof
impl UnwindSafe for PositionOneof
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