Skip to main content

push

Function push 

Source
pub async fn push(
    client: &GoogleClient,
    content: &str,
    default_title: &str,
    now: &str,
) -> Result<PushOutcome>
Expand description

Publish content’s projection to its linked doc, returning the rewritten file.

default_title is used to title a newly created doc when the file has no #+TITLE:. now is the caller-supplied push timestamp (clock at the edge).

§Errors

Returns a crate::error::Error on org-parse failure, any Google API failure, or a malformed existing machine region.