Enum taskchampion::server::ServerConfig
source · pub enum ServerConfig {
Local {
server_dir: PathBuf,
},
Remote {
origin: String,
client_id: Uuid,
encryption_secret: Vec<u8>,
},
Gcp {
bucket: String,
credential_path: Option<String>,
encryption_secret: Vec<u8>,
},
}
Expand description
The configuration for a replica’s access to a sync server.
Variants§
Local
A local task database, for situations with a single replica.
Remote
A remote taskchampion-sync-server instance
Fields
Gcp
A remote taskchampion-sync-server instance
Fields
§
bucket: String
Bucket in which to store the task data. This bucket must not be used for any other purpose.
§
credential_path: Option<String>
Path to a GCP credential file, in JSON format. This is required for GCP access incase some other application already makes use of Application Default Credentials. See https://cloud.google.com/docs/authentication#service-accounts for more details. See https://cloud.google.com/iam/docs/keys-create-delete for instructions on how to create a service account key.
Implementations§
source§impl ServerConfig
impl ServerConfig
Auto Trait Implementations§
impl Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnwindSafe for ServerConfig
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