pub struct TypeDefinition {
pub _type: String,
pub relations: Option<HashMap<String, Userset>>,
pub metadata: Option<Box<Metadata>>,
}Expand description
rust SDK for OpenFGA
API version: 0.1 Website: https://openfga.dev Documentation: https://openfga.dev/docs Support: https://discord.gg/8naAwJfWN6 License: Apache-2.0
NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT.
Fields§
§_type: String§relations: Option<HashMap<String, Userset>>§metadata: Option<Box<Metadata>>Implementations§
Source§impl TypeDefinition
impl TypeDefinition
pub fn new(_type: String) -> TypeDefinition
Trait Implementations§
Source§impl Clone for TypeDefinition
impl Clone for TypeDefinition
Source§fn clone(&self) -> TypeDefinition
fn clone(&self) -> TypeDefinition
Returns a duplicate of the value. Read more
1.0.0 · 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 TypeDefinition
impl Debug for TypeDefinition
Source§impl Default for TypeDefinition
impl Default for TypeDefinition
Source§fn default() -> TypeDefinition
fn default() -> TypeDefinition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TypeDefinition
impl<'de> Deserialize<'de> for TypeDefinition
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 TypeDefinition
impl PartialEq for TypeDefinition
Source§impl Serialize for TypeDefinition
impl Serialize for TypeDefinition
impl StructuralPartialEq for TypeDefinition
Auto Trait Implementations§
impl Freeze for TypeDefinition
impl RefUnwindSafe for TypeDefinition
impl Send for TypeDefinition
impl Sync for TypeDefinition
impl Unpin for TypeDefinition
impl UnwindSafe for TypeDefinition
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