#[repr(i32)]pub enum TakedownLevel {
TAKEDOWN_LEVEL_UNSPECIFIED = 0,
TAKEDOWN_LEVEL_CONTENT = 1,
TAKEDOWN_LEVEL_REPOSITORY = 2,
TAKEDOWN_LEVEL_NAMESPACE = 3,
}Available on crate feature
hooks only.Expand description
Same level numbers as the admin TakedownLevel (§14.1, §16).
Variants§
TAKEDOWN_LEVEL_UNSPECIFIED = 0
TAKEDOWN_LEVEL_CONTENT = 1
TAKEDOWN_LEVEL_REPOSITORY = 2
TAKEDOWN_LEVEL_NAMESPACE = 3
Implementations§
Source§impl TakedownLevel
impl TakedownLevel
Sourcepub const Unspecified: Self = Self::TAKEDOWN_LEVEL_UNSPECIFIED
pub const Unspecified: Self = Self::TAKEDOWN_LEVEL_UNSPECIFIED
Idiomatic alias for Self::TAKEDOWN_LEVEL_UNSPECIFIED; Debug prints the variant name.
Sourcepub const Content: Self = Self::TAKEDOWN_LEVEL_CONTENT
pub const Content: Self = Self::TAKEDOWN_LEVEL_CONTENT
Idiomatic alias for Self::TAKEDOWN_LEVEL_CONTENT; Debug prints the variant name.
Sourcepub const Repository: Self = Self::TAKEDOWN_LEVEL_REPOSITORY
pub const Repository: Self = Self::TAKEDOWN_LEVEL_REPOSITORY
Idiomatic alias for Self::TAKEDOWN_LEVEL_REPOSITORY; Debug prints the variant name.
Sourcepub const Namespace: Self = Self::TAKEDOWN_LEVEL_NAMESPACE
pub const Namespace: Self = Self::TAKEDOWN_LEVEL_NAMESPACE
Idiomatic alias for Self::TAKEDOWN_LEVEL_NAMESPACE; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for TakedownLevel
impl Clone for TakedownLevel
impl Copy for TakedownLevel
Source§impl Debug for TakedownLevel
impl Debug for TakedownLevel
Source§impl Default for TakedownLevel
impl Default for TakedownLevel
Source§impl<'de> Deserialize<'de> for TakedownLevel
impl<'de> Deserialize<'de> for TakedownLevel
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Enumeration for TakedownLevel
impl Enumeration for TakedownLevel
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.impl Eq for TakedownLevel
Source§impl Hash for TakedownLevel
impl Hash for TakedownLevel
Source§impl PartialEq for TakedownLevel
impl PartialEq for TakedownLevel
Source§impl ProtoElemJson for TakedownLevel
impl ProtoElemJson for TakedownLevel
Source§fn serialize_proto_json<S: Serializer>(
v: &Self,
s: S,
) -> Result<S::Ok, S::Error>
fn serialize_proto_json<S: Serializer>( v: &Self, s: S, ) -> Result<S::Ok, S::Error>
Serialize this value with proto3 JSON semantics.
Source§fn deserialize_proto_json<'de, D: Deserializer<'de>>(
d: D,
) -> Result<Self, D::Error>
fn deserialize_proto_json<'de, D: Deserializer<'de>>( d: D, ) -> Result<Self, D::Error>
Deserialize a value with proto3 JSON semantics.
Source§impl Serialize for TakedownLevel
impl Serialize for TakedownLevel
impl StructuralPartialEq for TakedownLevel
Auto Trait Implementations§
impl Freeze for TakedownLevel
impl RefUnwindSafe for TakedownLevel
impl Send for TakedownLevel
impl Sync for TakedownLevel
impl Unpin for TakedownLevel
impl UnsafeUnpin for TakedownLevel
impl UnwindSafe for TakedownLevel
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