pub struct PromisorInfo {
pub name: String,
pub url: Option<String>,
pub filter: Option<String>,
pub token: Option<String>,
}Expand description
One advertised or configured promisor remote.
Debug output and serialization never show the token, nor a user name or password
in the URL.
Fields§
§name: StringRemote name.
url: Option<String>Remote URL, as configured or advertised. Serialized with any user name and
password removed (see Self::display_url).
filter: Option<String>Partial-clone filter (partialCloneFilter field).
token: Option<String>Authentication token (token field). Never serialized.
Implementations§
Source§impl PromisorInfo
impl PromisorInfo
Sourcepub fn display_url(&self) -> String
pub fn display_url(&self) -> String
The URL with any user name and password removed, for showing to people.
§Returns
An empty string when there is no URL.
Trait Implementations§
Source§impl Clone for PromisorInfo
impl Clone for PromisorInfo
Source§impl Debug for PromisorInfo
impl Debug for PromisorInfo
Source§impl Default for PromisorInfo
impl Default for PromisorInfo
impl Eq for PromisorInfo
Source§impl PartialEq for PromisorInfo
impl PartialEq for PromisorInfo
impl StructuralPartialEq for PromisorInfo
Auto Trait Implementations§
impl Freeze for PromisorInfo
impl RefUnwindSafe for PromisorInfo
impl Send for PromisorInfo
impl Sync for PromisorInfo
impl Unpin for PromisorInfo
impl UnsafeUnpin for PromisorInfo
impl UnwindSafe for PromisorInfo
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§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.