[−][src]Struct sn0int::models::NewUrl
Fields
subdomain_id: i32
value: &'a str
path: &'a str
status: Option<i32>
body: Option<&'a Vec<u8>>
online: Option<bool>
title: Option<&'a String>
redirect: Option<&'a String>
Trait Implementations
impl<'a> InsertableStruct<Url> for NewUrl<'a>
[src]
impl<'a> InsertableStruct<Url> for NewUrl<'a>
impl<'a> Upsertable<Url> for NewUrl<'a>
[src]
impl<'a> Upsertable<Url> for NewUrl<'a>
type Update = UrlUpdate
fn upsert(self, existing: &Url) -> Self::Update | [src] |
fn upsert_str( | [src] |
fn upsert_bytes( | [src] |
fn upsert_opt<T: PartialEq>( | [src] |
impl<'a, 'insert> Insertable<table> for NewUrl<'a>
[src]
impl<'a, 'insert> Insertable<table> for NewUrl<'a>
type Values = <(Option<Eq<subdomain_id, i32>>, Option<Eq<value, &'a str>>, Option<Eq<path, &'a str>>, Option<Eq<status, i32>>, Option<Eq<body, &'a Vec<u8>>>, Option<Eq<online, bool>>, Option<Eq<title, &'a String>>, Option<Eq<redirect, &'a String>>) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
fn values(self) -> Self::Values | [src] |
fn insert_into( | [src] |
Insert self
into a given table. Read more
impl<'a, 'insert> Insertable<table> for &'insert NewUrl<'a>
[src]
impl<'a, 'insert> Insertable<table> for &'insert NewUrl<'a>
type Values = <(Option<Eq<subdomain_id, &'insert i32>>, Option<Eq<value, &'insert &'a str>>, Option<Eq<path, &'insert &'a str>>, Option<Eq<status, &'insert i32>>, Option<Eq<body, &'insert &'a Vec<u8>>>, Option<Eq<online, &'insert bool>>, Option<Eq<title, &'insert &'a String>>, Option<Eq<redirect, &'insert &'a String>>) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
fn values(self) -> Self::Values | [src] |
fn insert_into( | [src] |
Insert self
into a given table. Read more
impl<'a, 'insert> UndecoratedInsertRecord<table> for NewUrl<'a>
[src]
impl<'a, 'insert> UndecoratedInsertRecord<table> for NewUrl<'a>
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> IntoSql for T
[src]
impl<T> IntoSql for T
fn into_sql<T>(self) -> Self::Expression where | [src] |
Convert self
to an expression for Diesel's query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where | [src] |
Convert &self
to an expression for Diesel's query builder. Read more
impl<T> Erased for T
impl<T> Erased for T