Struct SecretCreateRequest
pub struct SecretCreateRequest {
pub organization_id: Uuid,
pub key: String,
pub value: String,
pub note: String,
pub project_ids: Option<Vec<Uuid>>,
}
Fields§
§organization_id: Uuid
Organization where the secret will be created
key: String
§value: String
§note: String
§project_ids: Option<Vec<Uuid>>
IDs of the projects that this secret will belong to
Trait Implementations§
§impl Debug for SecretCreateRequest
impl Debug for SecretCreateRequest
§impl<'de> Deserialize<'de> for SecretCreateRequest
impl<'de> Deserialize<'de> for SecretCreateRequest
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SecretCreateRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SecretCreateRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl JsonSchema for SecretCreateRequest
impl JsonSchema for SecretCreateRequest
§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
§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
§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read more§impl Serialize for SecretCreateRequest
impl Serialize for SecretCreateRequest
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl<'v_a> ValidateArgs<'v_a> for SecretCreateRequest
impl<'v_a> ValidateArgs<'v_a> for SecretCreateRequest
type Args = ()
fn validate_with_args( &self, args: <SecretCreateRequest as ValidateArgs<'v_a>>::Args, ) -> Result<(), ValidationErrors>
Auto Trait Implementations§
impl Freeze for SecretCreateRequest
impl RefUnwindSafe for SecretCreateRequest
impl Send for SecretCreateRequest
impl Sync for SecretCreateRequest
impl Unpin for SecretCreateRequest
impl UnwindSafe for SecretCreateRequest
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more