Struct ory_client::models::identity_schema::IdentitySchema
source · [−]pub struct IdentitySchema {
pub blob_name: String,
pub blob_url: String,
pub content_hash: Option<String>,
pub created_at: String,
pub id: String,
pub name: String,
pub schema: Option<Value>,
pub updated_at: String,
}
Expand description
IdentitySchema : Together the name and identity uuid are a unique index constraint. This prevents a user from having schemas with the same name. This also allows schemas to have the same name across the system.
Fields
blob_name: String
The gcs file name This is a randomly generated name which is used to uniquely identify the file on the blob storage
blob_url: String
The publicly accessible url of the schema
content_hash: Option<String>
The Content Hash Contains a hash of the schema’s content.
created_at: String
The Schema’s Creation Date
id: String
name: String
The schema name This is set by the user and is for them to easily recognise their schema
schema: Option<Value>
The actual Identity JSON Schema
updated_at: String
Last Time Schema was Updated
Implementations
sourceimpl IdentitySchema
impl IdentitySchema
sourcepub fn new(
blob_name: String,
blob_url: String,
created_at: String,
id: String,
name: String,
updated_at: String
) -> IdentitySchema
pub fn new(
blob_name: String,
blob_url: String,
created_at: String,
id: String,
name: String,
updated_at: String
) -> IdentitySchema
Together the name and identity uuid are a unique index constraint. This prevents a user from having schemas with the same name. This also allows schemas to have the same name across the system.
Trait Implementations
sourceimpl Clone for IdentitySchema
impl Clone for IdentitySchema
sourcefn clone(&self) -> IdentitySchema
fn clone(&self) -> IdentitySchema
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for IdentitySchema
impl Debug for IdentitySchema
sourceimpl<'de> Deserialize<'de> for IdentitySchema
impl<'de> Deserialize<'de> for IdentitySchema
sourcefn 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
sourceimpl PartialEq<IdentitySchema> for IdentitySchema
impl PartialEq<IdentitySchema> for IdentitySchema
sourcefn eq(&self, other: &IdentitySchema) -> bool
fn eq(&self, other: &IdentitySchema) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &IdentitySchema) -> bool
fn ne(&self, other: &IdentitySchema) -> bool
This method tests for !=
.
sourceimpl Serialize for IdentitySchema
impl Serialize for IdentitySchema
impl StructuralPartialEq for IdentitySchema
Auto Trait Implementations
impl RefUnwindSafe for IdentitySchema
impl Send for IdentitySchema
impl Sync for IdentitySchema
impl Unpin for IdentitySchema
impl UnwindSafe for IdentitySchema
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more