pub struct WikiCategoriesPagesVersionsResource<'a> { /* private fields */ }Expand description
client.wiki().categories().pages().versions()
Implementations§
Source§impl<'a> WikiCategoriesPagesVersionsResource<'a>
impl<'a> WikiCategoriesPagesVersionsResource<'a>
Sourcepub fn get(
&self,
wiki_category_id: impl Display,
identifier: impl Display,
version: impl Display,
) -> Result<WikiPage>
pub fn get( &self, wiki_category_id: impl Display, identifier: impl Display, version: impl Display, ) -> Result<WikiPage>
Get a specific version of a wiki page
GET /wiki/categories/{wikiCategoryId}/pages/{identifier}/versions/{version}
Requires churchwiki view category permission, including any permissions assigned to guests. For a protected system page in category 0, super-administrator access also permits the individual read. Returns one page revision with text: Markdown is returned as stored, legacy HTML is sanitized, and null content becomes an empty string. Prefer the stable page GUID; legacy titles are accepted and Unicode ellipsis characters in titles are normalized to three periods. A version value of 0 behaves like omission and selects the latest revision; other nonzero values select that exact revision. Redirect pages are returned as data with redirectTo rather than followed.
§Example
let version = client.wiki().categories().pages().versions().get(42, "main", 1)?;
println!("{}", version.title);Sourcepub fn list(
&self,
wiki_category_id: impl Display,
identifier: impl Display,
) -> Result<Vec<WikiPage>>
pub fn list( &self, wiki_category_id: impl Display, identifier: impl Display, ) -> Result<Vec<WikiPage>>
List all versions of a wiki page
GET /wiki/categories/{wikiCategoryId}/pages/{identifier}/versions
Requires churchwiki view category permission, including any permissions assigned to guests. For a protected system page in category 0, super-administrator access also permits the individual read. Returns all revisions for the GUID or legacy title, newest version first, including each revision’s text. Missing pages return an empty list rather than 404. The list is not paginated; meta.count is the number of versions. Metadata and current permission hints are included for each revision. Title identifiers are deprecated for this history endpoint.
§Example
for version in client.wiki().categories().pages().versions().list(42, "main")? {
println!("{}", version.title);
}