pub struct WriteScope {
pub create_labels: Vec<String>,
pub update_labels: Vec<String>,
pub delete_labels: Vec<String>,
pub create_edge_types: Vec<String>,
pub delete_edge_types: Vec<String>,
}Expand description
Write permissions granted to a role.
All fields default to empty (absent from JSON = no write permission for that
operation). write: None on RoleDef is equivalent to all fields empty —
the role is read-only, identical to v0.2 behavior.
Subset rule (enforced at apply_schema time):
create_labels,update_labels, anddelete_labelsmust each be a subset of the role’s readlabels.create_edge_typesanddelete_edge_typeshave no subset requirement (edge types are not read-scoped).
Fields§
§create_labels: Vec<String>Labels the role may CREATE nodes under.
update_labels: Vec<String>Labels whose nodes the role may SET properties on or MERGE. Only nodes already in the role’s read mask are reachable.
delete_labels: Vec<String>Labels whose nodes the role may DELETE (DETACH DELETE included).
create_edge_types: Vec<String>Edge types the role may insert via INSERT EDGE / Cypher CREATE or /ingest edges field. Both endpoints must be read-visible.
delete_edge_types: Vec<String>Edge types the role may DELETE (user-owned edges only; derived edges cannot be directly deleted by any token, including Full).
Trait Implementations§
Source§impl Clone for WriteScope
impl Clone for WriteScope
Source§fn clone(&self) -> WriteScope
fn clone(&self) -> WriteScope
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 WriteScope
impl Debug for WriteScope
Source§impl Default for WriteScope
impl Default for WriteScope
Source§fn default() -> WriteScope
fn default() -> WriteScope
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WriteScope
impl<'de> Deserialize<'de> for WriteScope
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 PartialEq for WriteScope
impl PartialEq for WriteScope
Source§impl Serialize for WriteScope
impl Serialize for WriteScope
impl StructuralPartialEq for WriteScope
Auto Trait Implementations§
impl Freeze for WriteScope
impl RefUnwindSafe for WriteScope
impl Send for WriteScope
impl Sync for WriteScope
impl Unpin for WriteScope
impl UnsafeUnpin for WriteScope
impl UnwindSafe for WriteScope
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.