pub struct EndpointView {
pub connector: Option<String>,
pub locator: Option<String>,
pub provider: Option<String>,
}Fields§
§connector: Option<String>Connector names a connected account from the org’s connector registry, when the endpoint reaches its provider through one. Absent means the locator stands on its own; the pair below is always sufficient either way.
locator: Option<String>Locator addresses the thing INSIDE that provider, in the provider’s own terms — an https clone URL for a hosted forge, a bare repository name for hanzo-git. It never carries a credential.
provider: Option<String>Provider is the concrete integration: "github", "gitlab" or "hanzo-git".
Implementations§
Source§impl EndpointView
impl EndpointView
pub fn new() -> EndpointView
Trait Implementations§
Source§impl Clone for EndpointView
impl Clone for EndpointView
Source§fn clone(&self) -> EndpointView
fn clone(&self) -> EndpointView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EndpointView
impl Debug for EndpointView
Source§impl Default for EndpointView
impl Default for EndpointView
Source§fn default() -> EndpointView
fn default() -> EndpointView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EndpointView
impl<'de> Deserialize<'de> for EndpointView
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 EndpointView
impl PartialEq for EndpointView
Source§impl Serialize for EndpointView
impl Serialize for EndpointView
impl StructuralPartialEq for EndpointView
Auto Trait Implementations§
impl Freeze for EndpointView
impl RefUnwindSafe for EndpointView
impl Send for EndpointView
impl Sync for EndpointView
impl Unpin for EndpointView
impl UnsafeUnpin for EndpointView
impl UnwindSafe for EndpointView
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