pub enum Module<'t> {
Backlinks {
page: Option<Cow<'t, str>>,
},
Categories {
include_hidden: bool,
},
Join {
button_text: Option<Cow<'t, str>>,
attributes: AttributeMap<'t>,
},
PageTree {
root: Option<Cow<'t, str>>,
show_root: bool,
depth: Option<NonZeroU32>,
},
Rate,
}
Variants§
Backlinks
Lists all the backlinks on the given page.
If no page is listed, the backlinks are returned for the current page.
Categories
Lists all categories on the site, along with the pages they contain.
Fields
Join
Allows a user to join a site.
PageTree
Lists the structure of pages as connected by parenthood.
Shows the hierarchy of parent relationships present on the given page. If no root page is listed, the tree returned is for the current page.
Rate
A rating module, which can be used to vote on the page.
Implementations§
Trait Implementations§
Source§impl<'de, 't> Deserialize<'de> for Module<'t>
impl<'de, 't> Deserialize<'de> for Module<'t>
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<'t> Eq for Module<'t>
impl<'t> StructuralPartialEq for Module<'t>
Auto Trait Implementations§
impl<'t> Freeze for Module<'t>
impl<'t> RefUnwindSafe for Module<'t>
impl<'t> Send for Module<'t>
impl<'t> Sync for Module<'t>
impl<'t> Unpin for Module<'t>
impl<'t> UnwindSafe for Module<'t>
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more