pub struct ListRefsRequest {
pub refs: Vec<String>,
pub collections: Option<Vec<String>>,
}Expand description
The ListRefs message: the entries of a ref listing request.
Each entry is a ref pattern of a
RefSelector, with an optional leading !.
The codec does not check the entries.
MAX_REF_PATTERNS,
MAX_REF_ENTRY_PARTS, and
MAX_REF_ENTRY_LEN are the limits of a
request. The two lists share the limit of entries. The specification of
ListRefs
states the reply.
Fields§
§refs: Vec<String>The entries that the server matches against the names of the local refs.
collections: Option<Vec<String>>The entries that the server matches against ID/NAME of the
collection refs, under the key collections.
None asks for no collection ref. The encoder writes the key only if
the value is Some, also for an empty list. An empty list selects
each collection ref.
Trait Implementations§
Source§impl Clone for ListRefsRequest
impl Clone for ListRefsRequest
Source§impl Debug for ListRefsRequest
impl Debug for ListRefsRequest
Source§impl Default for ListRefsRequest
impl Default for ListRefsRequest
impl Eq for ListRefsRequest
Source§impl PartialEq for ListRefsRequest
impl PartialEq for ListRefsRequest
impl StructuralPartialEq for ListRefsRequest
Auto Trait Implementations§
impl Forget for ListRefsRequest
impl Freeze for ListRefsRequest
impl Move for ListRefsRequest
impl RefUnwindSafe for ListRefsRequest
impl Send for ListRefsRequestwhere
RawVecInner: Send,
impl Sync for ListRefsRequestwhere
RawVecInner: Sync,
impl Unpin for ListRefsRequest
impl UnsafeUnpin for ListRefsRequest
impl UnwindSafe for ListRefsRequestwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.