pub struct RemoteConfig {
pub name: String,
pub kind: RemoteKind,
pub path: Option<String>,
pub mode: Option<FolderMode>,
pub keep: Option<u32>,
pub url: Option<String>,
pub auth: Option<String>,
pub username: Option<String>,
pub push: Option<String>,
pub pull: Option<String>,
pub extra: Table,
}Expand description
One [[remote]].
Fields§
§name: String§kind: RemoteKind§path: Option<String>Folder remotes: the path as the user typed it.
mode: Option<FolderMode>§keep: Option<u32>Archive mode: how many archives to keep.
url: Option<String>Git remotes (M13).
auth: Option<String>§username: Option<String>§push: Option<String>manual, on-commit or interval:15m (SPEC 9.8).
pull: Option<String>manual, on-start or interval:15m.
extra: TableImplementations§
Source§impl RemoteConfig
impl RemoteConfig
Sourcepub fn folder(name: &str, path: &str, mode: FolderMode) -> Self
pub fn folder(name: &str, path: &str, mode: FolderMode) -> Self
A folder remote at path.
Sourcepub fn git(name: &str, url: &str, auth: GitAuth) -> Self
pub fn git(name: &str, url: &str, auth: GitAuth) -> Self
A git remote at url (SPEC 9.6 example: push on commit, pull on
start).
pub fn folder_mode(&self) -> FolderMode
Trait Implementations§
Source§impl Clone for RemoteConfig
impl Clone for RemoteConfig
Source§impl Debug for RemoteConfig
impl Debug for RemoteConfig
Source§impl<'de> Deserialize<'de> for RemoteConfig
impl<'de> Deserialize<'de> for RemoteConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RemoteConfig
impl PartialEq for RemoteConfig
Source§impl Serialize for RemoteConfig
impl Serialize for RemoteConfig
impl StructuralPartialEq for RemoteConfig
Auto Trait Implementations§
impl Forget for RemoteConfig
impl Freeze for RemoteConfig
impl Move for RemoteConfig
impl RefUnwindSafe for RemoteConfig
impl Send for RemoteConfig
impl Sync for RemoteConfig
impl Unpin for RemoteConfig
impl UnsafeUnpin for RemoteConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for RemoteConfig
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