pub struct TreePushOptions {Show 13 fields
pub onto: String,
pub tags: Vec<String>,
pub bind_refs: Vec<String>,
pub orphan: bool,
pub collection: Option<String>,
pub subject: Option<String>,
pub body: Option<String>,
pub metadata: Vec<(String, Value)>,
pub timestamp: Option<u64>,
pub compression: Compression,
pub entry_filter: Option<EntryFilter>,
pub hash_jobs: Option<usize>,
pub progress: Option<PushProgress>,
}Expand description
The options of a tree push.
push_tree, push_tree_prepared, and push_tree_over_stream take
them. The struct carries no #[non_exhaustive]. A caller builds it with
..Default::default().
Fields§
§onto: StringThe branch of the server that the server moves to the new commit.
The parent of the commit is the commit of the branch on the server when the server writes the commit. If the branch is absent, the commit has no parent.
The tags that the server creates at the new commit, in order.
A tag that exists on the server refuses the push.
bind_refs: Vec<String>The names that the commit binds and that get no ref, in order.
The ostree.ref-binding of the commit holds the branch, each tag, and
each of these names.
orphan: boolThe switch that makes a commit with no parent.
On a branch that exists, the server allows it only for a client that can also delete the branch.
collection: Option<String>The collection id of the namespace of the server that the push writes.
None writes the local refs of the server. The collection id of the
server also writes its local refs.
subject: Option<String>The subject of the commit, empty if not set.
body: Option<String>The body of the commit, empty if not set.
metadata: Vec<(String, Value)>The entries of the a{sv} metadata dict of the commit, in order.
Each value is a variant. The server writes the bindings after the entries.
timestamp: Option<u64>The timestamp of the commit, in seconds since the Unix epoch, UTC.
If this field is not set, the server takes its clock. The push reads no environment variable.
compression: CompressionThe encoding of the content objects.
entry_filter: Option<EntryFilter>The filter that sees each entry of the walk.
hash_jobs: Option<usize>The maximum number of regular files that the hash pass reads at one time.
ScanOptions::hash_jobs gives the default and the limits.
progress: Option<PushProgress>The progress handle of the scan and of the session.
The scan sets its phases in the handle, and the session counts its progress into it.