pub struct CreateKeysetRequest<'a> {
pub name: Cow<'a, str>,
pub description: Cow<'a, str>,
pub client: Option<CreateClientSpec<'a>>,
}Expand description
Request message to create a new Keyset with the given name and description.
Requires the dataset:create scope.
Fields§
§name: Cow<'a, str>A human-readable name for the keyset.
Must be 1–64 characters using only A-Z a-z 0-9 _ - /. The name default is reserved.
description: Cow<'a, str>A description of the keyset.
client: Option<CreateClientSpec<'a>>Trait Implementations§
Source§impl<'a> ComposeSchema for CreateKeysetRequest<'a>
impl<'a> ComposeSchema for CreateKeysetRequest<'a>
Source§impl<'a> Debug for CreateKeysetRequest<'a>
impl<'a> Debug for CreateKeysetRequest<'a>
Source§impl<'de, 'a> Deserialize<'de> for CreateKeysetRequest<'a>
impl<'de, 'a> Deserialize<'de> for CreateKeysetRequest<'a>
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 Dummy<&'static str> for CreateKeysetRequest<'_>
Generate a random CreateDatasetRequest with a random description and the given name.
impl Dummy<&'static str> for CreateKeysetRequest<'_>
Generate a random CreateDatasetRequest with a random description and the given name.
Source§impl Dummy<Faker> for CreateKeysetRequest<'_>
Generate a random CreateDatasetRequest with a random name and description.
impl Dummy<Faker> for CreateKeysetRequest<'_>
Generate a random CreateDatasetRequest with a random name and description.
Source§impl<'a> Serialize for CreateKeysetRequest<'a>
impl<'a> Serialize for CreateKeysetRequest<'a>
Source§impl<'a> ToSchema for CreateKeysetRequest<'a>
impl<'a> ToSchema for CreateKeysetRequest<'a>
Source§impl<'a> Validate for CreateKeysetRequest<'a>
impl<'a> Validate for CreateKeysetRequest<'a>
Source§impl<'v_a, 'a> ValidateArgs<'v_a> for CreateKeysetRequest<'a>
impl<'v_a, 'a> ValidateArgs<'v_a> for CreateKeysetRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for CreateKeysetRequest<'a>
impl<'a> RefUnwindSafe for CreateKeysetRequest<'a>
impl<'a> Send for CreateKeysetRequest<'a>
impl<'a> Sync for CreateKeysetRequest<'a>
impl<'a> Unpin for CreateKeysetRequest<'a>
impl<'a> UnsafeUnpin for CreateKeysetRequest<'a>
impl<'a> UnwindSafe for CreateKeysetRequest<'a>
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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