pub enum Visibility {
Public,
Private,
Unknown,
}Expand description
Who can read a destination, as its backend reports it on a live read.
Only Public is public. Unknown is the answer of a
source that cannot say — a stdio plugin, whose protocol has no such read — and a
destination answering it is never treated as private: an item that may only be written
somewhere private is refused there.
Variants§
Public
Anybody can read it.
Private
Only those its backend admits can read it.
Unknown
The source cannot say.
Implementations§
Trait Implementations§
Source§impl Clone for Visibility
impl Clone for Visibility
impl Copy for Visibility
Source§impl Debug for Visibility
impl Debug for Visibility
Source§impl<'de> Deserialize<'de> for Visibility
impl<'de> Deserialize<'de> for Visibility
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 Display for Visibility
impl Display for Visibility
impl Eq for Visibility
Source§impl Hash for Visibility
impl Hash for Visibility
Source§impl JsonSchema for Visibility
impl JsonSchema for Visibility
Source§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
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for Visibility
impl PartialEq for Visibility
Source§impl Serialize for Visibility
impl Serialize for Visibility
impl StructuralPartialEq for Visibility
Auto Trait Implementations§
impl Freeze for Visibility
impl RefUnwindSafe for Visibility
impl Send for Visibility
impl Sync for Visibility
impl Unpin for Visibility
impl UnsafeUnpin for Visibility
impl UnwindSafe for Visibility
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