Skip to main content

pull

Function pull 

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

Fetch the linked doc’s comments and merge new ones into content, returning the rewritten file.

now is the caller-supplied pull timestamp (clock at the edge, EI-4).

§Errors

Returns Error::NotLinked when the file has no #+GDOC_ID:, Error::Google on any comment-list failure, Error::OrgParse on org-parse failure, or Error::Sexp when the existing ** Sync State block is malformed.