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
Fields
Lists all categories on the site, along with the pages they contain.
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> StructuralEq for Module<'t>
impl<'t> StructuralPartialEq for Module<'t>
Auto Trait Implementations§
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§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§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.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer