pub struct EditPage {
pub access_token: String,
pub path: String,
pub title: Title,
pub content: Content,
pub author_name: AuthorName,
pub author_url: AuthorUrl,
pub return_content: bool,
}Expand description
Use this method to edit an existing Telegraph page. On success, returns a Page object.
-
access_token (String) Required. Access token of the Telegraph account.
-
path (String) Required. Path to the page.
-
title (String, 1-256 characters) Required. Page title.
-
content (Array of Node, up to 64 KB) Required. Content of the page.
-
author_name (String, 0-128 characters) Author name, displayed below the article’s title.
-
author_url (String, 0-512 characters) Profile link, opened when users click on the author’s name below the title. Can be any link, not necessarily to a Telegram profile or channel.
-
return_content (Boolean, default = false) If true, a content field will be returned in the Page object.
Fields§
§access_token: String§path: String§title: Title§content: Content§return_content: boolImplementations§
Auto Trait Implementations§
impl Freeze for EditPage
impl RefUnwindSafe for EditPage
impl Send for EditPage
impl Sync for EditPage
impl Unpin for EditPage
impl UnsafeUnpin for EditPage
impl UnwindSafe for EditPage
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