pub struct Located {
pub kind: HostKind,
pub integration: Option<Integration>,
pub web_base: String,
pub project: String,
pub remote: String,
pub linked: bool,
}Expand description
The repository’s host, as far as it is known without a request.
Fields§
§kind: HostKind§integration: Option<Integration>The profile that answers for it, when one is configured.
web_base: String§project: String§remote: String§linked: boolThe user linked the repository (a pulls/issues source or a pinned profile): the only case where the host may be asked.
Implementations§
Source§impl Located
impl Located
Sourcepub fn protection(&self, lookup: Option<ProtectionLookup>) -> HostProtection
pub fn protection(&self, lookup: Option<ProtectionLookup>) -> HostProtection
The how-to’s data with the answer of a lookup folded in (None: not
asked).
Trait Implementations§
impl Eq for Located
impl StructuralPartialEq for Located
Auto Trait Implementations§
impl Forget for Located
impl Freeze for Located
impl Move for Located
impl RefUnwindSafe for Located
impl Send for Locatedwhere
RawVecInner: Send,
impl Sync for Locatedwhere
RawVecInner: Sync,
impl Unpin for Located
impl UnsafeUnpin for Locatedwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Locatedwhere
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§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.