Struct taskchampion::server::RemoteServer [−][src]
pub struct RemoteServer { /* fields omitted */ }
Implementations
A RemoeServer communicates with a remote server over HTTP (such as with taskchampion-sync-server).
Construct a new RemoteServer. The origin
is the sync server’s protocol and hostname
without a trailing slash, such as https://tcsync.example.com
. Pass a client_key to
identify this client to the server. Multiple replicas synchronizing the same task history
should use the same client_key.
Trait Implementations
fn add_version(
&mut self,
parent_version_id: VersionId,
history_segment: HistorySegment
) -> Result<AddVersionResult>
fn add_version(
&mut self,
parent_version_id: VersionId,
history_segment: HistorySegment
) -> Result<AddVersionResult>
Add a new version.
Get the version with the given parent VersionId