#[non_exhaustive]pub struct ApprovalCuaDataFact {
pub kind: String,
pub secret_kind: Option<String>,
pub mask: Option<ApprovalCuaMask>,
}Expand description
One piece of data the call would send. An open union on kind
(secret, or other for a row the host can’t word); a client shows
other and any kind it doesn’t know as a generic data row.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: StringOpen discriminator: secret or other.
secret_kind: Option<String>For secret, the scanner’s open tag (github_token,
secret_named_value and so on); a client words the tags it knows and
shows any other as “a secret”.
mask: Option<ApprovalCuaMask>For secret, the parts of it the card may show, never the value.
Trait Implementations§
Source§impl Clone for ApprovalCuaDataFact
impl Clone for ApprovalCuaDataFact
Source§impl Debug for ApprovalCuaDataFact
impl Debug for ApprovalCuaDataFact
Source§impl<'de> Deserialize<'de> for ApprovalCuaDataFact
impl<'de> Deserialize<'de> for ApprovalCuaDataFact
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 ApprovalCuaDataFact
Source§impl PartialEq for ApprovalCuaDataFact
impl PartialEq for ApprovalCuaDataFact
Source§impl Serialize for ApprovalCuaDataFact
impl Serialize for ApprovalCuaDataFact
impl StructuralPartialEq for ApprovalCuaDataFact
Auto Trait Implementations§
impl Freeze for ApprovalCuaDataFact
impl RefUnwindSafe for ApprovalCuaDataFact
impl Send for ApprovalCuaDataFact
impl Sync for ApprovalCuaDataFact
impl Unpin for ApprovalCuaDataFact
impl UnsafeUnpin for ApprovalCuaDataFact
impl UnwindSafe for ApprovalCuaDataFact
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