pub struct CaptureShape {
pub prefix: Option<String>,
pub name: Option<String>,
pub min_length: Option<u32>,
pub max_length: Option<u32>,
}Expand description
What the agent asked a captured value to be.
Fields§
§prefix: Option<String>The value starts with this.
name: Option<String>The value is this kind of secret, one of NAMES.
min_length: Option<u32>The value is this many characters at least, and at most.
max_length: Option<u32>Implementations§
Trait Implementations§
Source§impl Clone for CaptureShape
impl Clone for CaptureShape
Source§fn clone(&self) -> CaptureShape
fn clone(&self) -> CaptureShape
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 CaptureShape
impl Debug for CaptureShape
Source§impl Default for CaptureShape
impl Default for CaptureShape
Source§fn default() -> CaptureShape
fn default() -> CaptureShape
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CaptureShape
impl<'de> Deserialize<'de> for CaptureShape
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
impl Eq for CaptureShape
Source§impl PartialEq for CaptureShape
impl PartialEq for CaptureShape
Source§impl Serialize for CaptureShape
impl Serialize for CaptureShape
impl StructuralPartialEq for CaptureShape
Auto Trait Implementations§
impl Freeze for CaptureShape
impl RefUnwindSafe for CaptureShape
impl Send for CaptureShape
impl Sync for CaptureShape
impl Unpin for CaptureShape
impl UnsafeUnpin for CaptureShape
impl UnwindSafe for CaptureShape
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