pub struct ProvisionService {
pub target: String,
pub flavor: String,
pub address: String,
pub mode: ProvisionMode,
pub auth: ProvisionAuth,
}Expand description
One service the consumer should configure to reach through hackamore.
Fields§
§target: StringService instance name (Action.target).
flavor: StringNormalization flavor, e.g. "github" | "generic".
address: StringConsumer-facing address to point the tool at (empty if not configured).
mode: ProvisionModeWhether hackamore injects the credential or the consumer must supply its own.
auth: ProvisionAuthThe credential material the consumer presents to hackamore for this service.
Implementations§
Source§impl ProvisionService
impl ProvisionService
Sourcepub fn new(
target: String,
flavor: String,
address: String,
mode: ProvisionMode,
auth: ProvisionAuth,
) -> Self
pub fn new( target: String, flavor: String, address: String, mode: ProvisionMode, auth: ProvisionAuth, ) -> Self
Constructs a new ProvisionService.
Trait Implementations§
Source§impl Clone for ProvisionService
impl Clone for ProvisionService
Source§fn clone(&self) -> ProvisionService
fn clone(&self) -> ProvisionService
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 ProvisionService
impl Debug for ProvisionService
Source§impl<'de> Deserialize<'de> for ProvisionService
impl<'de> Deserialize<'de> for ProvisionService
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 JsonSchema for ProvisionService
impl JsonSchema for ProvisionService
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ProvisionService
impl PartialEq for ProvisionService
Source§fn eq(&self, other: &ProvisionService) -> bool
fn eq(&self, other: &ProvisionService) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProvisionService
impl Serialize for ProvisionService
impl StructuralPartialEq for ProvisionService
Auto Trait Implementations§
impl Freeze for ProvisionService
impl RefUnwindSafe for ProvisionService
impl Send for ProvisionService
impl Sync for ProvisionService
impl Unpin for ProvisionService
impl UnsafeUnpin for ProvisionService
impl UnwindSafe for ProvisionService
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